Thanks for the quick replys yesterday... Obviously we're new to this (but making progress).
Our goal is to create a minimized single CD distro with hands-off (kickstart) install. Therefore we have elliminated packages we do not need (dependency check passes).
Working with Fedora CORE 3 and have followed steps in several available online documents: http://rau.homedns.org/twiki/bin/view/Anaconda/AnacondaDocumentationProject and http://bipolar.longbros.com/index.php?blog=5&p=29&c=1&page=1&...
but have settled on this because it looks like what we are trying to accomplish: http://insipid.com/RHOneCD.pdf
We added our custom rpm's to the /RPMS/ dir and called them from ks.cfg but the install failed with "packaege does not exist" so we removed the calls from ks.cfg (packages remain the /RPMS/).
We were able to create an ISO and boot it w/in VMWare, however, it dies at the very end of "Preparing RPM Transaction" with "Install exited abnormally".
Documents above conflict on wheter or not it is necessary to modify .discinfo and/or comps.xml (since we have removed/added rpm's).
Any ideas why anaconda may be crashing at this stage?
Thanks a lot in advance!
Earl
__________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com
Earl wrote:
We were able to create an ISO and boot it w/in VMWare, however, it dies at the very end of "Preparing RPM Transaction" with "Install exited abnormally".
Documents above conflict on wheter or not it is necessary to modify .discinfo and/or comps.xml (since we have removed/added rpm's).
Any ideas why anaconda may be crashing at this stage?
I have recently attempted this myself. For me, the key was: pkgorder and the correct arguments to genhdlist.
In the example below, my modified distro is unpacked at /big/FC3. I created it by copying the contents of the DVD to /big/FC3, adding newer packages to /big/FC3/Fedora/RPMS/. I got rid of the duplicates and added lots of packages like mplayer, the dvd libraries, and such. In order to use the new packages from kickstart, you must edit the comps.xml and comps.rpm files. I haven't gotten that far yet, so I do it from the post section in my ks.cfg file. The rpm program understands URLs, so that makes it easy to add packages from post. Also, the ks= directive understands URLs and thus is able to run a cgi script. We do stuff like: # linux text ks=http://10.7.23.106/cgi-bin/fc3.cgi?TYPE=desktop And let the cgi script build an rpm request in the post install section that looks like this:
rpm -ih http://10.7.23.106/ks/FC3/Fedora/RPMS/aalib-1.4.0-5.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/cdrdao-1.1.9-6.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/divx4linux-5.0.5-0.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/faad2-2.0-2.20040923.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/gtweakui-0.4.0-1.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/id3lib-3.8.3-4_1.rhfc2.92.at.i386.rpm ... and all one line
Anyways, here is the script I now use to make the modified distro usable by anaconda:
#!/bin/sh PYTHONPATH=/usr/lib/anaconda export PYTHONPATH /usr/lib/anaconda-runtime/pkgorder /big/FC3 i386 Fedora > /tmp/pkglist /usr/lib/anaconda-runtime/genhdlist --fileorder /tmp/pkglist --withnumbers --productpath Fedora /big/FC3
Works like a champ. You will have to remove any duplicate packages that gendhlist complains about, then try again, cleanup errors, and again until it runs clean.
Phil,
You da-man....
Thanks so much for the detailed reply. All of the necessary steps are out there in one place or another but we were unable to come up with a working procedure.
In our particular case: Single CDROM, "no-hands" install with custom Kickstart Smaller than "Minimal" install (removed many RPM's) Addition of cutom rolled RPMs
We found the direction at: http://insipid.com/RHOneCD.pdf to be most helpful with the exception of step #12. Instead of running just 'genhdlist' mentioned in the url above, we substituted (with appropriate paths) your two commands:
/usr/lib/anaconda-runtime/pkgorder /big/FC3 i386 Fedora > /tmp/pkglist /usr/lib/anaconda-runtime/genhdlist --fileorder /tmp/pkglist --withnumbers --productpath Fedora /big/FC3
and all was well. There was NO need to hack up comps.xml, .discinfo, or any other files.
Thanks again and enjoy your new year!
Earl
--- Phil Meyer phil@unixlords.com wrote:
Earl wrote:
We were able to create an ISO and boot it w/in
VMWare,
however, it dies at the very end of "Preparing RPM Transaction" with "Install exited abnormally".
Documents above conflict on wheter or not it is necessary to modify .discinfo and/or comps.xml (since we have removed/added rpm's).
Any ideas why anaconda may be crashing at this
stage?
I have recently attempted this myself. For me, the key was: pkgorder and the correct arguments to genhdlist.
In the example below, my modified distro is unpacked at /big/FC3. I created it by copying the contents of the DVD to /big/FC3, adding newer packages to /big/FC3/Fedora/RPMS/. I got rid of the duplicates and added lots of packages like mplayer, the dvd libraries, and such. In order to use the new packages from kickstart, you must edit the comps.xml and comps.rpm files. I haven't gotten that far yet, so I do it from the post section in my ks.cfg file. The rpm program understands URLs, so that makes it easy to add packages from post. Also, the ks= directive understands URLs and thus is able to run a cgi script. We do stuff like: # linux text ks=http://10.7.23.106/cgi-bin/fc3.cgi?TYPE=desktop And let the cgi script build an rpm request in the post install section that looks like this:
rpm -ih
http://10.7.23.106/ks/FC3/Fedora/RPMS/aalib-1.4.0-5.1.fc3.rf.i386.rpm
http://10.7.23.106/ks/FC3/Fedora/RPMS/cdrdao-1.1.9-6.i386.rpm
http://10.7.23.106/ks/FC3/Fedora/RPMS/divx4linux-5.0.5-0.1.fc3.rf.i386.rpm
http://10.7.23.106/ks/FC3/Fedora/RPMS/faad2-2.0-2.20040923.1.fc3.rf.i386.rpm
http://10.7.23.106/ks/FC3/Fedora/RPMS/gtweakui-0.4.0-1.1.fc3.rf.i386.rpm
http://10.7.23.106/ks/FC3/Fedora/RPMS/id3lib-3.8.3-4_1.rhfc2.92.at.i386.rpm
... and all one line
Anyways, here is the script I now use to make the modified distro usable by anaconda:
#!/bin/sh PYTHONPATH=/usr/lib/anaconda export PYTHONPATH /usr/lib/anaconda-runtime/pkgorder /big/FC3 i386 Fedora > /tmp/pkglist /usr/lib/anaconda-runtime/genhdlist --fileorder /tmp/pkglist --withnumbers --productpath Fedora /big/FC3
Works like a champ. You will have to remove any duplicate packages that gendhlist complains about, then try again, cleanup errors, and again until it runs clean.
__________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
Phil,
I am very encouraged to see your post about remastering FC3, and I am glad that Earl has had success with your script as well. I however am about to go nuts trying to get this to work. (painful grin) I, like you (I think), am using the stock FC3 DVD tree, replacing RPMS with updated ones, and remastering the DVD iso to get a patched install DVD. I have been working on this since FC3 was released with no success. With FC2, I used only the following to update hdlist with consistent success:
/usr/lib/anaconda-runtime/genhdlist --productpath Fedora $FEDORAROOT
where $FEDORAROOT is the root of the build tree
When FC3 came out, I used the same command (which completed successfully), but then I also experienced installer crash immediately after "Preparing RPM Transaction", with the only terminal error being the infamous: "WARNING: not all packages in hdlist had order tag". After research it seemed that the pkglist/fileorder was now necessary with FC3 for some reason, so I tried the following:
export PYTHONPATH=/usr/lib/anaconda export PATH=$PATH:/usr/lib/anaconda-runtime /usr/lib/anaconda-runtime/genhdlist --productpath Fedora $FEDORAROOT /usr/lib/anaconda-runtime/pkgorder $FEDORAROOT i386 > $FEDORAROOT/Fedora/base/pkgorder /usr/lib/anaconda-runtime/genhdlist --fileorder $FEDORAROOT/Fedora/base/pkgorder $FEDORAROOT
This procedure, (as well as your script) fails at pkgorder consistently with the following loop:
warning: ignore package name relation(s) [49] openoffice.org-libs -
openoffice.org
warning: ignore package name relation(s) [50] gtk+ -> gdk-pixbuf warning: ignore package name relation(s) [51] nautilus -> nautilus-cd- burner warning: LOOP: warning: removing initscripts-8.01-1 "Requires: /sbin/nash" from tsort relations. warning: initscripts-8.01-1 Requires: /sbin/nash warning: mkinitrd-4.1.19-1 PreReq: dev warning: udev-039-10.FC3.6 PreReq: lvm2 warning: removing lvm2-2.00.25-1.01 "Requires: kernel >= 2.6" from tsort relations. warning: lvm2-2.00.25-1.01 Requires: kernel
= 2.6
warning: kernel-smp-2.6.9-1.681_FC3 PreReq: initscripts >= 5.83 Traceback (most recent call last): File "/usr/lib/anaconda-runtime/pkgorder", line 265, in ? group.select(selectOptional = 1) File "/usr/lib/anaconda/hdrlist.py", line 670, in select self.selectDeps([pkgnevra]) File "/usr/lib/anaconda/hdrlist.py", line 571, in selectDeps p = depMatch(dep, self.grpset.hdrlist) File "/usr/lib/anaconda/hdrlist.py", line 172, in depMatch l.append(f[0]) KeyboardInterrupt
It seems to be some sort of looping dependency issue. I have tried rebuilding the DVD tree several times just to be sure I wasn't accidentally deleting something, but I am fairly confident that I am not doing something that obvious ;-)
Anyway, I apologize for the lengthy history here, but I hope that you and/or other readers may have some insight.
BTW: my build system is running FC3 patched daily, and I have also tried development versions of anaconda and anaconda-runtime with no success.
Thanks !!
Chris
On Tue, 2004-12-28 at 20:46 +0000, Phil Meyer wrote:
Earl wrote:
We were able to create an ISO and boot it w/in VMWare, however, it dies at the very end of "Preparing RPM Transaction" with "Install exited abnormally".
Documents above conflict on wheter or not it is necessary to modify .discinfo and/or comps.xml (since we have removed/added rpm's).
Any ideas why anaconda may be crashing at this stage?
I have recently attempted this myself. For me, the key was: pkgorder and the correct arguments to genhdlist.
In the example below, my modified distro is unpacked at /big/FC3. I created it by copying the contents of the DVD to /big/FC3, adding newer packages to /big/FC3/Fedora/RPMS/. I got rid of the duplicates and added lots of packages like mplayer, the dvd libraries, and such. In order to use the new packages from kickstart, you must edit the comps.xml and comps.rpm files. I haven't gotten that far yet, so I do it from the post section in my ks.cfg file. The rpm program understands URLs, so that makes it easy to add packages from post. Also, the ks= directive understands URLs and thus is able to run a cgi script. We do stuff like: # linux text ks=http://10.7.23.106/cgi-bin/fc3.cgi?TYPE=desktop And let the cgi script build an rpm request in the post install section that looks like this:
rpm -ih http://10.7.23.106/ks/FC3/Fedora/RPMS/aalib-1.4.0-5.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/cdrdao-1.1.9-6.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/divx4linux-5.0.5-0.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/faad2-2.0-2.20040923.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/gtweakui-0.4.0-1.1.fc3.rf.i386.rpm http://10.7.23.106/ks/FC3/Fedora/RPMS/id3lib-3.8.3-4_1.rhfc2.92.at.i386.rpm ... and all one line
Anyways, here is the script I now use to make the modified distro usable by anaconda:
#!/bin/sh PYTHONPATH=/usr/lib/anaconda export PYTHONPATH /usr/lib/anaconda-runtime/pkgorder /big/FC3 i386 Fedora > /tmp/pkglist /usr/lib/anaconda-runtime/genhdlist --fileorder /tmp/pkglist --withnumbers --productpath Fedora /big/FC3
Works like a champ. You will have to remove any duplicate packages that gendhlist complains about, then try again, cleanup errors, and again until it runs clean.
Anaconda-devel-list mailing list Anaconda-devel-list@redhat.com https://www.redhat.com/mailman/listinfo/anaconda-devel-list
anaconda-devel@lists.fedoraproject.org