[SGVLUG] It was a pleasure

Erik Espinoza erik.espinoza at gmail.com
Fri Mar 10 11:08:51 PST 2006


Hello Everyone,

It was a pleasure to attend yesterdays meeting. As stated, I have
written a quick article for slipstreaming the updates into a Fedora
Core distribution. If anyone wants to spend a little time cleaning
this up, feel free to repost. This will make a network installable or
dvd burnable setup.

The first step is to copy ALL rpms for the distribution and ALL of the
updates into a folder.

# mkdir -p newfc4/Fedora/RPMS
# cp /path/to/fc4/Fedora/RPMS/*.rpm newfc4/Fedora/RPMS
# cp /path/to/fc4updates/arch/*.rpm newfc4/Fedora/RPMS

Next download and make executable
http://linux.duke.edu/projects/yum/download/misc/repomanage.py

Now execute the following command

# ./repomanage,py --old newfc4/Fedora/RPMS | xargs rm -f

Set the following variables:
# export PYTHONPATH=/usr/lib/anaconda
# export PATH="$PATH:/usr/lib/anaconda-runtime"

Now make a newfc4/Fedora/base and copy in the comps.xml and comps.rpm
file from the original distribution. Also copy the latest comps-4
# mkdir -p newfc4/Fedora/base
# cp /path/to/fc4/Fedora/base/comps.* newfc4/Fedora/base


Now to use anaconda to rebuild the distribution. This will require the
anaconda-runtime package and various other utils to be installed on
your machine. (yum -y install anaconda-*)

Execute the following commands:
# genhdlist --productpath=Fedora newfc4/
# pkgorder /path/newfc4/ i386 | tee pkgorder.txt
# buildinstall --comp dist-4.1 --pkgorder /path/pkgorder.txt --version 4 \
--product 'Fedora Core' --release 'Fedora Core 4' --prodpath Fedora \
/path/newfc4
# genhdlist --withnumbers --productpath Fedora  --fileorder
/path/pkgorder.txt /path/newfc4

This now has an installer and can be used for http or nfs installs. A
boot.iso file will exist for this. To make a dvd you will have to
execute the following command:

# mkisofs -R -J -T -no-emul-boot -boot-load-size 4 -boot-info-table -V
"FC4-DVD" \
-A "Fedora Core 4" -b isolinux/isolinux.bin -c isolinux/boot.cat -x lost+found \
-o FC-4.3-i386-DVD.iso i386

Now run 'implantisomd5' against the dvd ISO you created in order to be
able to verify the installation media.

If you will be making a cd set, you can look at the whiteboxlinux.org
site for info on using splittree.py to create cd's under step 12:

http://www.whiteboxlinux.org/howto.html

Hope this helps someone out.

Thanks,
Erik


More information about the SGVLUG mailing list