From 9f85670fda092fe227d507872a3637bce303f8d8 Mon Sep 17 00:00:00 2001 From: Antony Messerli Date: Sat, 9 Jan 2021 11:20:47 -0600 Subject: [PATCH] Change prompt based on installer type --- roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 b/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 index 0fe96eeb..d4737d49 100644 --- a/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 +++ b/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