Customize RedHat 8 Installation


Table of Contents

Create customized RedHat 8 installation disk 
Notes 
Comp group definition 
Sample text-internet group 
comps.xml Doc 
Update comps.xml file with getfullcomps.py 
Update comps.xml file with getfullcomps.py 
packages associated with "server", "desktop", etc? 
genhdlist 
chroot or not 
quick chroot question - ks.cfg 
Generate MD5 for modified discs? 
mkCDrec 
How do you make a Bootable DVD to install Linux? 
How to make your own RedHat 8.0 DVD 

Create customized RedHat 8 installation disk 

ls psyche-i386-disc* | xargs -n 1 /usr/lib/anaconda-runtime/checkisomd5
cd /mnt/iso1
mkdir -p /export/linux/8.0/en/os/i386
find . | grep -E '/(README|RELEASE-NOTES|fips[12]|images/|dosutils/|TRANS.TBL)'
find . | grep -Ev '/(README|RELEASE-NOTES|fips[12]|images/|dosutils/|TRANS.TBL)' | cpio -v pdm !$
cd /mnt/rpms-org
 ln -s ../iso1/RedHat/RPMS/*.rpm .
 ln -s ../iso2/RedHat/RPMS/*.rpm .
 ln -s ../iso3/RedHat/RPMS/*.rpm .

poldek —sdir=.

cd ../rpms-pck rpm -qa | sed 's|^|ln -s ../rpms-org/|; s/\s*$/*.rpm ./' !! | sh

# remove any none-existing rpms echo **.rpm rm !$

tar -h -czf ../rpms-pck.tgz *
cd /export/linux/8.0/en/os/i386/
cd RedHat/RPMS/
rm *
tar -xzf /mnt/rpms-pck.tgz
rpm -ivh anaconda-runtime-8.0-4.i386.rpm
cd /export/linux/8.0/en/os/i386
mk_iso
cdecord blank=fast
cdrecord dev=/dev/sg0 -multi -eject -v speed=4 ../RedHat-8.0.iso
cdrecord -msinfo dev=/dev/sg0
/usr/lib/anaconda-runtime/checkisomd5 /dev/cdrom
file ~/histories/kickstart/customize/ks8.cfg
cp ~/histories/kickstart/customize/ks8.cfg /dos/drv_a1/rh8/
cp ../RedHat-8.0.iso /dos/drv_a1/rh8/isoc/

Notes 

To check 

dumphdrlist.py /usr/share/comps/i386/hdlist | sort > /export/baks/hdlist.o1
dumphdrlist.py RedHat/base/hdlist | sort > /export/baks/hdlist.n1
comm -3 /export/baks/hdlist.o1 /export/baks/hdlist.n1

To see how RedHat made its boot CD 

strings /export/rh8/iso/psyche-i386-disc1.iso | grep 'mkisofs.*Red Hat Linux'