Derwynd's Weblog

Derwynd's Weblog

RHEL4 Single DVD

################ Creation Of SINGLE DVD from ISO or CD’s ####################
# Install base system on IDE HD with RHEL4
# The same procedure can be used for Contos/Fedora or any redhat based system
# Make sure your base system and the rpms required are of that system
# Install the following RPM’s from disk
anaconda-10.1.1.13-1
anaconda-help-10.1.0-1
anaconda-product-4-1AS
busybox-anaconda-1.00.rc1-5
anaconda-runtime-10.1.1.13-1
comps-4AS-0.20050107
comps-extras-10.1-1
# If ISO are present mount the ISO onto one partion
# Else Dump the files from the 4 cd’s into /mnt/disk[no] partitions
# eg :
mkdir -p /mnt/disk{1,2,3,4}
mount -o loop RHEL4_Disk1.iso /mnt/disk1
mount -o loop RHEL4_Disk2.iso /mnt/disk2
mount -o loop RHEL4_Disk3.iso /mnt/disk3
mount -o loop RHEL4_Disk4.iso /mnt/disk4

# We now copy all the files from the directories to a single directory:
# My directory structure was /usr/RHEL4/RHEL4_OneDVD

mkdir -p /usr/RHEL4/RHEL4_OneDVD
cp -ar /mnt/disk1 /usr/RHEL4/RHEL4_OneDVD
cp -ar /mnt/disk{2,3,4}/RHEL4/RPMS/* /usr/RHEL4/RHEL4_OneDVD
cp /mnt/disk1/.discinfo /usr/RHEL4/RHEL4_OneDVD
=============================================================

PYTHONPATH=/usr/lib/anaconda /usr/lib/anaconda-runtime/pkgorder /usr/RHEL4/RHEL4_OneDVD RHEL4 > /usr/RHEL4/pkgorder

# This creates a list of files in the order it needs to install them
# in the file /data/isobuild/pkgorder Sometimes an occasional
# RPM will not provide the information anaconda needs. You can edit
# the file manually and insert your RPMs at the end.
# Ignore the errors during this process
=============================================================
# Next we need to generate the dependency file:
/usr/lib/anaconda-runtime/genhdlist –fileorder /usr/RHEL4/pkgorder /usr/RHEL4/RHEL4_OneDVD/

# No Errors after this step
=============================================================

# Building the DVD iso
# Now to build the iso:

cd /usr/RHEL4/RHEL4_OneDVD/
chmod a+w isolinux/isolinux.bin

mkisofs -r -T -J -V “Custom RHEL4 Build” -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /usr/RHEL4/ISOs/RHEL4.iso /usr/RHEL4/RHEL4_OneDVD/

# This Generates the RHEL4 iso in /usr/RHEL4/ISOs/RHEL4.iso

=============================================================

# Now we can burn the image to the DVD. I assume the DVD writer is already
# set up on your system. Better Usr Nero to burn the iso /usr/RHEL4/ISOs/RHEL4.iso

Advertisements

November 10, 2008 - Posted by | Uncategorized

Sorry, the comment form is closed at this time.

%d bloggers like this: