[root@localhost tftpboot]# cat pxelinux.cfg/default default vesamenu.c32 timeout 30 #30代表3秒选择时间,默认600(即一分钟) display boot.msg ... menu separator # insert an empty line menu separator # insert an empty line
########################################################################## ################# INSTALL CONFIG OPTION BEGIN ############################ ##########################################################################
label linux menu label ^Install RedHat 7.3 Linux # install menu kernel redhat73/vmlinuz #此处不再需要写repo地址了,因为在ks.cfg文件中已经指定了从哪里获取相应的镜像,也指定了安装过程中的各种选择 append initrd=redhat73/initrd.img ks=http://192.168.1.100/ks7/ks.cfg
label linux menu label ^Install RedHat 7.2 Linux #此处也必须要指定内核文件的准确位置,默认读取的内核文件在tftpboot下,此处我们部署的是多个版本,故具体版本读取相应目录下的文件 kernel redhat72/vmlinuz append initrd=redhat72/initrd.img ks=http://192.168.1.100/ks72/ks.cfg
label linux menu label ^Install RedHat 6.8 Linux kernel redhat68/vmlinuz append initrd=redhat68/initrd.img ks=http://192.168.1.100/ks6/ksmini.cfg
############# END LINE FOR LEBEL INSTALL OPTIONS ######################################
# utilities submenu menu begin ^Rescue Mode menu title Rescue Mode
label rescue menu indent count 5 menu label ^Rescue mode forRedHat7.3 text help If the system will not boot, this lets you access files and edit config files to try to get it booting again. endtext kernel redhat73/vmlinuz append initrd=redhat73/initrd.img repo=http://192.168.1.100/source/redhat73 rescue quiet #挽救环境必须写repo地址,此处不是安装,故也不需要ks文件,所以此处必须指定从哪里获取挽救环境所需要的资源
label rescue menu indent count 5 menu label ^Rescue mode forRedHat7.2 text help If the system will not boot, this lets you access files and edit config files to try to get it booting again. endtext kernel redhat72/vmlinuz append initrd=redhat72/initrd.img repo=http://192.168.1.100/source/redhat72 rescue quiet
label rescue menu indent count 5 menu label ^Rescue mode forRedHat6.8 text help If the system will not boot, this lets you access files and edit config files to try to get it booting again. endtext kernel redhat68/vmlinuz append initrd=redhat68/initrd.img repo=http://192.168.1.100/source/redhat68 rescue quiet
label returntomain menu label Return to ^main menu menu exit
menu end
###################### END LINE FOR RESCUE MODE ########################################