Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1145149
  • 博文数量: 153
  • 博客积分: 10576
  • 博客等级: 上将
  • 技术积分: 2137
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-02 21:01
文章分类

全部博文(153)

文章存档

2009年(43)

2008年(110)

分类: LINUX

2008-10-05 12:40:12

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) |
0

上一篇:RHCE实验手册

下一篇:ftp与tftp的区别

给主人留下些什么吧!~~