Explorar el Código

Change prompt based on installer type

Antony Messerli hace 4 años
padre
commit
9f85670fda
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  1. 6 3
      roles/netbootxyz/templates/menu/ubuntu.ipxe.j2

+ 6 - 3
roles/netbootxyz/templates/menu/ubuntu.ipxe.j2

@@ -10,6 +10,7 @@ set os Ubuntu
 clear ubuntu_version
 clear install_type
 clear older_release
+clear install_url
 set install_type deb
 menu ${os} - ${arch_a}
 item --gap Latest Releases
@@ -57,9 +58,11 @@ iseq ${install_type} sub && set install_params systemd.unit=rescue.target ||
 goto deb_install
 
 :deb_automated
-echo -n Specify preseed/autoinstall URL for ${os} ${ubuntu_version}: && read autoinstall
-iseq ${install_type} deb && set install_params auto=true priority=critical preseed/url=${autoinstall} ||
-iseq ${install_type} sub && set install_params autoinstall ds=nocloud-net;s=${autoinstall} ||
+iseq ${install_type} deb && set install_name preseed ||
+iseq ${install_type} sub && set install_name autoinstall ||
+echo -n Specify ${install_name} URL for ${os} ${ubuntu_version}: && read install_url
+iseq ${install_type} deb && set install_params auto=true priority=critical preseed/url=${install_url} ||
+iseq ${install_type} sub && set install_params autoinstall ds=nocloud-net;s=${install_url} ||
 goto deb_install
 
 :deb_install