Просмотр исходного кода

Merge pull request #503 from netbootxyz/text

Enable text installs on RHEL and Fedora
Ryan Kuba 5 лет назад
Родитель
Сommit
acaa25b17d

+ 6 - 1
roles/netbootxyz/templates/menu/fedora.ipxe.j2

@@ -37,7 +37,8 @@ goto boottype
 
 :boottype
 menu ${os} ${arch} boot type
-item normal ${ova} install
+item normal ${ova} graphical install
+item text ${ova} text install
 item rescue ${ova} rescue
 item kickstart ${ova} specify kickstart url
 isset ${bt} || choose bt || goto fedora
@@ -46,6 +47,10 @@ iseq ${bt} rescue && goto rescue ||
 iseq ${bt} kickstart && goto kickstart ||
 goto boot
 
+:text
+set params inst.text ||
+goto boot
+
 :rescue
 set params rescue ||
 goto boot

+ 8 - 2
roles/netbootxyz/templates/menu/rhel.ipxe.j2

@@ -14,7 +14,8 @@ set os Red Hat Enterprise Linux
 clear rhel_version
 menu ${os}
 item --gap Installers
-item rhel_install ${space} Load ${os} Installer...
+item rhel_install ${space} ${os} Graphical Install
+item rhel_install_text ${space} ${os} Text Install
 item --gap Options:
 item arch_set ${space} Architecture [ ${rhel_arch} ]
 item url_set ${space} Base URL [ ${rhel_base_url} ]
@@ -38,12 +39,17 @@ echo
 prompt Press any key to return to RHEL Menu...
 goto rhel
 
+:rhel_install_text
+set params text
+goto rhel_install
+
 :rhel_install
 isset ${rhel_base_url} && goto boot || echo URL not set... && goto url_set
+goto boot
 
 :boot
 imgfree
-kernel ${rhel_base_url}/os/${rhel_arch}/images/pxeboot/vmlinuz repo=${rhel_base_url}/os/${rhel_arch} ${console} ${ipparam} initrd=initrd.img
+kernel ${rhel_base_url}/os/${rhel_arch}/images/pxeboot/vmlinuz repo=${rhel_base_url}/os/${rhel_arch} ${console} ${ipparam} ${params} initrd=initrd.img
 initrd ${rhel_base_url}/os/${rhel_arch}/images/pxeboot/initrd.img
 md5sum vmlinuz initrd.img
 boot