Browse Source

Modify CentOS to use iPXE boot interface

Utilizes the network interface used in iPXE to get on the network to
obtain the rootfs with dracut for the CentOS installer.
Antony Messerli 6 years ago
parent
commit
b5e0e0f71d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/centos.ipxe

+ 2 - 3
src/centos.ipxe

@@ -8,7 +8,6 @@ goto ${menu} ||
 :centos
 :centos
 clear osversion
 clear osversion
 set os CentOS
 set os CentOS
-set ksdevice eth0
 menu ${os} - ${arch} - Image Sig Checks: [${img_sigs_enabled}]
 menu ${os} - ${arch} - Image Sig Checks: [${img_sigs_enabled}]
 item 7.5.1804 ${os} 7.5
 item 7.5.1804 ${os} 7.5
 item 6.9 ${os} 6.9
 item 6.9 ${os} 6.9
@@ -45,7 +44,7 @@ goto bootos_images
 
 
 :kickstart
 :kickstart
 echo -n Specify kickstart URL for ${os} ${osversion}: && read ksurl
 echo -n Specify kickstart URL for ${os} ${osversion}: && read ksurl
-set params ks=${ksurl} ksdevice=${ksdevice} ||
+set params ks=${ksurl} ||
 clear bt
 clear bt
 goto boottype
 goto boottype
 
 
@@ -57,7 +56,7 @@ goto boottype
 
 
 :bootos_images
 :bootos_images
 imgfree
 imgfree
-kernel http://${centos_mirror}/${dir}/images/pxeboot/vmlinuz repo=${repo} ${params} ${netcfg} ${console} initrd=initrd.img
+kernel http://${centos_mirror}/${dir}/images/pxeboot/vmlinuz repo=${repo} ${params} ${console} BOOTIF=${netX/mac} ip=dhcp initrd=initrd.img
 initrd http://${centos_mirror}/${dir}/images/pxeboot/initrd.img
 initrd http://${centos_mirror}/${dir}/images/pxeboot/initrd.img
 echo
 echo
 echo MD5sums:
 echo MD5sums: