12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

48CHAPTER 1Installing <strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong>On the Boot CDAs described in the previous section “Making a Boot Disc,” a boot CD can be created fromthe images/boot.iso file on the first installation CD. However, after the boot CD is madefrom this image, it is read-only, and files cannot be added to it after the CD is created.The kickstart file must be named ks.cfg and must be located in the top-level directory ofthe CD. To add this file before creating the CD, loopback mount the boot.iso image,copy the contents to a different directory, add the ks.cfg file to the directory, and thenuse mkisofs to create a new ISO image:1. Create two empty directories such as /tmp/bootiso/ and /tmp/bootisoks/. The firstone will be used to loopback mount the boot.iso image, and the second one will beused to create the boot CD with a kickstart file on it.2. After retrieving the boot.iso image from the first installation CD as described in the“Creating a Boot Disc” section earlier in this chapter, use the su - command tobecome the root user, and loopback mount the image into the directory just created:mount -o loop boot.iso /tmp/bootiso/3. Type exit to return to using your normal user account instead of a root shell.4. Recursively copy the contents of the CD into the second new directory:cp -r /tmp/bootiso/* /tmp/bootisoks/5. Change into the directory that now contains the files for the new boot disc:cd /tmp/bootisoks6. Change the file permissions of the isolinux/ directory so you have write access tothem:chmod u+w isolinux/*7. Copy the kickstart file into this directory, making sure it is named ks.cfg on theboot ISO (provide the proper path to the kickstart file):cp isolinux/ks.cfg8. Create a new ISO image of the boot CD with the kickstart file on it. The commandshould be issued as one command without the backslash (\). The backslash is usedin the following command because the command is too long to fit on one printedline:mkisofs -o bootks.iso -b isolinux.bin -c boot.cat -no-emul-boot \-boot-load-size 4 -boot-info-table -R -J -v -T isolinux/9. Write the bootks.iso image to a CD by either right-clicking on the file in theNautilus file manager and selecting Write to Disc… or using the cdrecord utility.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!