制作 CentOS 7 启动盘

(0 comments)

下载并挂载CentOS 7.6安装ISO文件。

mount -o loop /share/redhat/iso/CentOS-7-x86_64-DVD-1810.iso /mnt/cdrom/

创建制作启动盘的工作目录

mkdir -p /share/redhat/iso/boot/centos76

从挂载的源文件中复制isolinux子目录

cp -a /mnt/cdrom/isolinux  /share/redhat/iso/boot/centos76/

目录中的文件包括:

boot.msg
splash.lss  # 安装过程背景图片
-  Press the 01<ENTER>07 key to begin the installation process.
# 启动安装前的提示语
grub.conf 
isolinux.cfg
menu rows 30 # 将菜单增加到30行
DHCP
menu separator # insert an empty line

label redhat7-dhcp
menu label ^Install Red Hat Enterprise Linux 7 at DHCP Network
kernel vmlinuz
append initrd=initrd.img inst.ks=http://repo-server/mrepo/kickstart/rhel7-dhcp.cfg


label centos7-dhcp
menu label ^Install CentOS Linux 7 at DHCP Network
kernel vmlinuz
append initrd=initrd.img inst.ks=http://repo-server/mrepo/kickstart/centos7-dhcp.cfg
Static IP
# utilities submenu
menu begin ^Static IP Address
menu title Static IP Address

label linux-customize
menu label ^Install Linux - Press Tab to Customize
kernel vmlinuz
append initrd=initrd.img inst.ks=http://repo-server/mrepo/kickstart/hostname.cfg ip=10.0.0.10 netmask=255.255.255.0 gateway=10.0.0.1 nameserver=10.0.0.2
Install mkisofs
yum install mkisofs
Create ISO
cd /share/redhat/iso/boot/centos76/
mkisofs -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table  -joliet-long  -R -J -v -T `pwd` -V "PTC Red Hat Gold Image" -o /share/redhat/iso/boot/CentOS-7.6-goldimage-v01.iso 

kisofs -R -J -T -v --no-emul-boot --boot-load-size 4 --boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat -o /root/boot.iso cdrom/

Currently unrated

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required