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 then
use mkisofs to create a new ISO image:
1. Create two empty directories such as /tmp/bootiso/ and /tmp/bootisoks/. The first
one will be used to loopback mount the boot.iso image, and the second one will be
used 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 to
become 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/bootisoks
6. Change the file permissions of the isolinux/ directory so you have write access to
them:
chmod u+w isolinux/*
7. Copy the kickstart file into this directory, making sure it is named ks.cfg on the
boot ISO (provide the proper path to the kickstart file):
cp isolinux/ks.cfg
8. Create a new ISO image of the boot CD with the kickstart file on it. The command
should be issued as one command without the backslash (\). The backslash is used
in the following command because the command is too long to fit on one printed
line:
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 the
Nautilus file manager and selecting Write to Disc… or using the cdrecord utility.
阅读(1213) | 评论(0) | 转发(0) |