我的控制台 会员登陆 免费注册 最后更新 高级搜索 返回首页 我要投稿 退出登陆 开源电脑书库 开源学习笔记 极点软件园 中华励志网 开源技术研究
当前在线: 20
开源资讯
开源文化
初级入门
系统管理
网络管理
网络安全
服务器应用
Linux认证教学
开源开发技术
开源操作系统开发
开源企业级解决方案
理论研究
开源文摘 / 系统管理 / Linux发行版DIY / Rebuilding the DVD ISO for CentOS 5 or RHEL 5
Rebuilding the DVD ISO for CentOS 5 or RHEL 5
2009-07-26          点击: 413
Rebuilding the DVD ISO for CentOS 5 or RHEL 5         
I found a few documents on the Internet about what I needed to do to rebuild the DVD to integrate my kickstart file. Unfortunately none of the solution had all the needed command in one place for my setup to work so here is my cookbook from the different sources.

First I mounted the dvdrom with the CentOS DVD to /mnt/cdrom:

mount /dev/cdrom /mnt/cdrom

Then I copied a few files:

    * cd /tmp
    * cp -R /mnt/cdrom/isolinux ./
    * cp -R /mnt/cdrom/CentOS ./isolinux/
    * cp -R /mnt/cdrom/* ./isolinux/ [say yes to overwrite the TRANS.TBL]
    * cp -R /mnt/cdrom/.discinfo ./isolinux/
    * cp ks.cfg /tmp/isolinux/

For my RHEL5.1 rebuild I did similar commands but the paths are a bit different:

    * cd /tmp
    * cp -R /mnt/cdrom/isolinux ./
    * cp -R /mnt/cdrom/Server ./isolinux/
    * cp -R /mnt/cdrom/VT ./isolinux/
    * cp -R /mnt/cdrom/images ./isolinux/
    * cp -R /mnt/cdrom/Cluster ./isolinux/
    * cp -R /mnt/cdrom/ClusterStorage ./isolinux/
    * cp -R /mnt/cdrom/* ./isolinux/ [say yes to overwrite the TRANS.TBL]
    * cp -R /mnt/cdrom/.discinfo ./isolinux/
    * cp ks.cfg /tmp/isolinux/

I had to edit the isolinux.cfg (in the isolinux directory) to change a couple of lines:

    * the “default linux” line became “default ks“
    * The 2 line after “label ks” went from “append ks initrd=initrd.img” to “append ks=cdrom:/ks.cfg initrd=initrd.img“

The isolinux.cfg file now looks like:

default ks
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
kernel vmlinuz
append initrd=initrd.img
label text
kernel vmlinuz
append initrd=initrd.img text
label ks
kernel vmlinuz
append ks=cdrom:/ks.cfg initrd=initrd.img
label local
localboot 1
label memtest86
kernel memtest
append -

To build the ISO (all this on one line):

mkisofs -o centos5-dvd1.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -R -J -V “CentOS 5.1 (CentOS) Disk1″ -A “CentOS 5.1 (CentOS) Disk1″ -p “Cinq” -T isolinux/

For Red Hat Entreprise Linux 5.1 I had to change the label for the DVD from “CentOS 5.1 (CentOS) Disk1″ to “RHEL_5.1 x86_64 DVD” (obviously I am using the x64 version for RHEL5) so the command became:

mkisofs -o centos5-dvd1.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -R -J -V “RHEL_5.1 x86_64 DVD” -A “RHEL_5.1 x86_64 DVD” -p “Cinq” -T isolinux/

Reference sites:

    * http://www.techonthenet.com/linux/centos4_update.php
    * https://www.centos.org/modules/n ... pic_time=1149676608
    * http://blog.nominet.org.uk/tech/ ... l-console-boot-dvd/
    * http://www.redhat.com/docs/manua ... kstart_Options.html
    * http://nootech.wordpress.com/200 ... entos-5-install-cd/
责任编辑: mayu8758
发表评论 查看评论 加入收藏 Email给朋友 打印本文
如果你想对该文章评分, 请先登陆, 如果你仍未注册,请点击注册链接注册成为本站会员.
平均得分 0, 共 0 人评分
1 2 3 4 5 6 7 8 9 10
 
开源文摘(Open Source Digest):最新 高质量 原创 转载 文章100%经站长亲自验证!
Opendigest
is powered by Open Source Technology : Linux Apache PHP MySQL
"开源文摘"豫ICP备06013383号
关闭