From 3099610c27eeefd254195fafc67df06e66625b75 Mon Sep 17 00:00:00 2001 From: Skyrant Date: Sun, 15 Mar 2026 16:03:45 +0100 Subject: [PATCH 1/3] Add isset guards to enable runtime variable overrides Add isset guards to all set commands in boot.cfg.j2 and menu templates to allow variables to be overridden in local-vars.ipxe without requiring a rebuild. This makes netboot.xyz more flexible for users who want to customize mirrors, timeouts, and menu options at boot time. Changes: - boot.cfg.j2: Add isset guards to all global vars, mirror loop, architecture flags, and cloud-specific settings - tinycore.ipxe.j2: Add isset guard to tinycore_mirror - k3os.ipxe.j2: Add isset guard to k3os_mirror - debian.ipxe.j2: Add isset guard to debian_mirror, remove redundant no-op - ubuntu.ipxe.j2: Add isset guard to ubuntu_mirror - archlinux.ipxe.j2: Add clarifying comment about archlinux_mirror All variables now follow the pattern: isset ${var} || set var value This is fully backwards compatible and follows existing patterns used by live_endpoint and boot_timeout variables. --- .../templates/menu/archlinux.ipxe.j2 | 1 + roles/netbootxyz/templates/menu/boot.cfg.j2 | 108 +++++++++--------- .../netbootxyz/templates/menu/debian.ipxe.j2 | 4 +- roles/netbootxyz/templates/menu/k3os.ipxe.j2 | 2 +- .../templates/menu/tinycore.ipxe.j2 | 2 +- .../netbootxyz/templates/menu/ubuntu.ipxe.j2 | 2 +- 6 files changed, 60 insertions(+), 59 deletions(-) diff --git a/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 b/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 index fc9b6f93af..51a3a7bf6e 100644 --- a/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 @@ -8,6 +8,7 @@ iseq ${os_arch} x86_64 && set os_arch x86_64 || iseq ${os_arch} i386 && set os_arch i686 || isset ${dhcp-server} || goto static_ip set ipparam BOOTIF=${netX/mac} ip=dhcp +# archlinux_mirror is set in boot.cfg.j2 with isset guard, safe to use here set real_archlinux_mirror ${archlinux_mirror} goto goto_menu diff --git a/roles/netbootxyz/templates/menu/boot.cfg.j2 b/roles/netbootxyz/templates/menu/boot.cfg.j2 index be8b0f2cfc..4a60c0abc8 100644 --- a/roles/netbootxyz/templates/menu/boot.cfg.j2 +++ b/roles/netbootxyz/templates/menu/boot.cfg.j2 @@ -2,25 +2,25 @@ :global_vars # set site name -set site_name {{ site_name }} +isset ${site_name} || set site_name {{ site_name }} # set boot domain -set boot_domain {{ boot_domain }} +isset ${boot_domain} || set boot_domain {{ boot_domain }} # set location of memdisk -set memdisk {{ memdisk_location }} +isset ${memdisk} || set memdisk {{ memdisk_location }} # set location of custom netboot.xyz live assets, override in local-vars.ipxe isset ${live_endpoint} || set live_endpoint {{ live_endpoint }} # signature check enabled? -set sigs_enabled {{ sigs_enabled | default(false) | bool | lower }} +isset ${sigs_enabled} || set sigs_enabled {{ sigs_enabled | default(false) | bool | lower }} # set location of signatures for sources -set sigs {{ sigs_location }} +isset ${sigs} || set sigs {{ sigs_location }} # set location of latest iPXE -iseq ${platform} efi && set ipxe_disk netboot.xyz-snponly.efi || set ipxe_disk netboot.xyz-undionly.kpxe +isset ${ipxe_disk} || iseq ${platform} efi && set ipxe_disk netboot.xyz-snponly.efi || set ipxe_disk netboot.xyz-undionly.kpxe # set default boot timeout isset ${boot_timeout} || set boot_timeout {{ boot_timeout }} @@ -32,8 +32,8 @@ isset ${boot_timeout} || set boot_timeout {{ boot_timeout }} {% for key, value in releases.items() | sort(attribute='1.name') %} {% if value.mirror is defined and value.base_dir is defined %} ### {{ value.name }} -set {{ key }}_mirror {{ value.mirror }} -set {{ key }}_base_dir {{ value.base_dir }} +isset ${{{ key }}_mirror} || set {{ key }}_mirror {{ value.mirror }} +isset ${{{ key }}_base_dir} || set {{ key }}_base_dir {{ value.base_dir }} {% endif %} {% endfor %} @@ -41,51 +41,51 @@ set {{ key }}_base_dir {{ value.base_dir }} # determine architectures and enable menu options ################################################# :architectures -set menu_linux 1 -set menu_bsd 1 -set menu_unix 1 -set menu_freedos 1 -set menu_live 1 -set menu_pci 1 -set menu_windows 1 -set menu_utils 1 +isset ${menu_linux} || set menu_linux 1 +isset ${menu_bsd} || set menu_bsd 1 +isset ${menu_unix} || set menu_unix 1 +isset ${menu_freedos} || set menu_freedos 1 +isset ${menu_live} || set menu_live 1 +isset ${menu_pci} || set menu_pci 1 +isset ${menu_windows} || set menu_windows 1 +isset ${menu_utils} || set menu_utils 1 iseq ${arch} i386 && goto i386 || iseq ${arch} x86_64 && goto x86_64 || iseq ${arch} arm64 && goto arm64 || goto architectures_end :x86_64 -set menu_linux_i386 0 +isset ${menu_linux_i386} || set menu_linux_i386 0 iseq ${platform} efi && goto efi || goto architectures_end :i386 -set menu_linux 0 -set menu_linux_i386 1 -set menu_bsd 1 -set menu_unix 0 -set menu_freedos 1 -set menu_live 0 -set menu_windows 0 -set menu_utils 1 +isset ${menu_linux} || set menu_linux 0 +isset ${menu_linux_i386} || set menu_linux_i386 1 +isset ${menu_bsd} || set menu_bsd 1 +isset ${menu_unix} || set menu_unix 0 +isset ${menu_freedos} || set menu_freedos 1 +isset ${menu_live} || set menu_live 0 +isset ${menu_windows} || set menu_windows 0 +isset ${menu_utils} || set menu_utils 1 iseq ${platform} efi && goto efi || goto architectures_end :arm64 -set menu_linux 0 -set menu_linux_arm 1 -set menu_unix 0 -set menu_freedos 0 -set menu_live 0 -set menu_live_arm 1 -set menu_windows 0 -set menu_utils 0 -set menu_utils_arm 1 -set menu_pci 0 +isset ${menu_linux} || set menu_linux 0 +isset ${menu_linux_arm} || set menu_linux_arm 1 +isset ${menu_unix} || set menu_unix 0 +isset ${menu_freedos} || set menu_freedos 0 +isset ${menu_live} || set menu_live 0 +isset ${menu_live_arm} || set menu_live_arm 1 +isset ${menu_windows} || set menu_windows 0 +isset ${menu_utils} || set menu_utils 0 +isset ${menu_utils_arm} || set menu_utils_arm 1 +isset ${menu_pci} || set menu_pci 0 iseq ${platform} efi && goto efi || goto architectures_end :efi -set menu_bsd 1 -set menu_freedos 0 -set menu_unix 0 -set menu_pci 0 +isset ${menu_bsd} || set menu_bsd 1 +isset ${menu_freedos} || set menu_freedos 0 +isset ${menu_unix} || set menu_unix 0 +isset ${menu_pci} || set menu_pci 0 goto architectures_end :architectures_end goto clouds @@ -100,7 +100,7 @@ iseq ${ipxe_cloud_config} packet && goto metal || goto clouds_end :gce -set cmdline console=ttyS0,115200n8 +isset ${cmdline} || set cmdline console=ttyS0,115200n8 goto clouds_end :metal @@ -110,23 +110,23 @@ iseq ${arch} arm64 && goto metal_arm64 || goto clouds_end :metal_x86_64 -set cmdline console=ttyS1,115200n8 -iseq ${platform} efi && set ipxe_disk netboot.xyz-metal-snp.efi || set ipxe_disk netboot.xyz-metal.kpxe -set menu_linux_i386 0 -set menu_freedos 0 -set menu_windows 0 -iseq ${platform} efi && set menu_pci 0 || +isset ${cmdline} || set cmdline console=ttyS1,115200n8 +isset ${ipxe_disk} || iseq ${platform} efi && set ipxe_disk netboot.xyz-metal-snp.efi || set ipxe_disk netboot.xyz-metal.kpxe +isset ${menu_linux_i386} || set menu_linux_i386 0 +isset ${menu_freedos} || set menu_freedos 0 +isset ${menu_windows} || set menu_windows 0 +isset ${menu_pci} || iseq ${platform} efi && set menu_pci 0 || goto clouds_end :metal_arm64 -set cmdline console=ttyAMA0,115200 -set ipxe_disk netboot.xyz-metal-arm64-snp.efi -set menu_bsd 1 -set menu_freedos 0 -set menu_live 0 -set menu_windows 0 -set menu_utils 0 -set menu_pci 0 +isset ${cmdline} || set cmdline console=ttyAMA0,115200 +isset ${ipxe_disk} || set ipxe_disk netboot.xyz-metal-arm64-snp.efi +isset ${menu_bsd} || set menu_bsd 1 +isset ${menu_freedos} || set menu_freedos 0 +isset ${menu_live} || set menu_live 0 +isset ${menu_windows} || set menu_windows 0 +isset ${menu_utils} || set menu_utils 0 +isset ${menu_pci} || set menu_pci 0 goto clouds_end :clouds_end diff --git a/roles/netbootxyz/templates/menu/debian.ipxe.j2 b/roles/netbootxyz/templates/menu/debian.ipxe.j2 index f3bc025ef1..d27f2f1052 100644 --- a/roles/netbootxyz/templates/menu/debian.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/debian.ipxe.j2 @@ -30,7 +30,7 @@ goto mirrorcfg :older_release set older_release true -set debian_mirror {{ releases.debian.archive_mirror }} +isset ${debian_mirror} || set debian_mirror {{ releases.debian.archive_mirror }} echo Setting mirror to ${debian_mirror} clear debian_version echo -n Please set enter code name of release: ${} && read debian_version @@ -38,7 +38,7 @@ set dir ${debian_base_dir}/dists/${debian_version}/main/installer-${os_arch}/cur goto deb_boot_type :mirrorcfg -set debian_mirror ${debian_mirror} +# debian_mirror is set in boot.cfg.j2 with isset guard, no need to reassign set mirrorcfg mirror/suite=${debian_version} set dir ${debian_base_dir}/dists/${debian_version}/main/installer-${os_arch}/current/images/netboot/ goto deb_boot_type diff --git a/roles/netbootxyz/templates/menu/k3os.ipxe.j2 b/roles/netbootxyz/templates/menu/k3os.ipxe.j2 index 43671d4cdb..401dfb868d 100644 --- a/roles/netbootxyz/templates/menu/k3os.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/k3os.ipxe.j2 @@ -10,7 +10,7 @@ goto ${menu} || set os {{ releases.k3os.name }} set os_arch ${arch} iseq ${os_arch} x86_64 && set os_arch amd64 || -set k3os_mirror {{ releases.k3os.mirror }} +isset ${k3os_mirror} || set k3os_mirror {{ releases.k3os.mirror }} isset ${k3os_version} || set k3os_version latest isset ${k3os_install_device} || set k3os_install_device /dev/sda menu ${os} by Rancher diff --git a/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 b/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 index e742fab293..a4faa6c51c 100644 --- a/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 @@ -3,7 +3,7 @@ # Tiny Core Linux # http://tinycorelinux.net/downloads.html -set tinycore_mirror {{ releases.tinycore.mirror }} +isset ${tinycore_mirror} || set tinycore_mirror {{ releases.tinycore.mirror }} :arch_menu set os Tiny Core Linux diff --git a/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 b/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 index d17bcb3874..351bc2392e 100644 --- a/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 @@ -33,7 +33,7 @@ goto mirrorcfg :older_release set older_release true -set ubuntu_mirror {{ releases.ubuntu.archive_mirror }} +isset ${ubuntu_mirror} || set ubuntu_mirror {{ releases.ubuntu.archive_mirror }} echo Setting mirror to ${ubuntu_mirror} clear ubuntu_version echo -n Please set enter code name of release: ${} && read ubuntu_version From b0954124103348b9b798135e30750d43e396dbc4 Mon Sep 17 00:00:00 2001 From: Skyrant Date: Mon, 16 Mar 2026 08:01:30 +0100 Subject: [PATCH 2/3] Fix Jinja2 syntax for isset guards in mirror loop Use string concatenation to properly construct iPXE variable references like ${ubuntu_mirror} instead of invalid ${{{ key }}_mirror} syntax. --- roles/netbootxyz/templates/menu/boot.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/netbootxyz/templates/menu/boot.cfg.j2 b/roles/netbootxyz/templates/menu/boot.cfg.j2 index 4a60c0abc8..76b15f94ea 100644 --- a/roles/netbootxyz/templates/menu/boot.cfg.j2 +++ b/roles/netbootxyz/templates/menu/boot.cfg.j2 @@ -32,8 +32,8 @@ isset ${boot_timeout} || set boot_timeout {{ boot_timeout }} {% for key, value in releases.items() | sort(attribute='1.name') %} {% if value.mirror is defined and value.base_dir is defined %} ### {{ value.name }} -isset ${{{ key }}_mirror} || set {{ key }}_mirror {{ value.mirror }} -isset ${{{ key }}_base_dir} || set {{ key }}_base_dir {{ value.base_dir }} +isset {{ '${' + key + '_mirror}' }} || set {{ key }}_mirror {{ value.mirror }} +isset {{ '${' + key + '_base_dir}' }} || set {{ key }}_base_dir {{ value.base_dir }} {% endif %} {% endfor %} From 88a14bda3139c954b2b4d8e99e538a5df41b6064 Mon Sep 17 00:00:00 2001 From: Skyrant Date: Mon, 16 Mar 2026 08:54:03 +0100 Subject: [PATCH 3/3] Refine isset guards - only for user-configurable variables Remove isset guards from architecture/platform-specific settings that must be enforced based on hardware detection: - ipxe_disk: Bootloader must match detected platform - menu_* flags: Menu options must respect arch/platform capabilities Remove isset guards from distro-specific mirror variables not in the boot.cfg mirror loop (debian, ubuntu, k3os, tinycore). Keep isset guards only for truly user-configurable settings: - Global config (site_name, boot_domain, timeouts, etc.) - Mirror loop variables for distros in releases dict - Cloud-specific boot parameters (cmdline) This prevents users from accidentally enabling incompatible menus or bootloaders while still allowing customization of mirrors and timeouts. --- .../templates/menu/archlinux.ipxe.j2 | 1 - roles/netbootxyz/templates/menu/boot.cfg.j2 | 88 +++++++++---------- .../netbootxyz/templates/menu/debian.ipxe.j2 | 2 +- roles/netbootxyz/templates/menu/k3os.ipxe.j2 | 2 +- .../templates/menu/tinycore.ipxe.j2 | 2 +- .../netbootxyz/templates/menu/ubuntu.ipxe.j2 | 2 +- 6 files changed, 48 insertions(+), 49 deletions(-) diff --git a/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 b/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 index 51a3a7bf6e..fc9b6f93af 100644 --- a/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/archlinux.ipxe.j2 @@ -8,7 +8,6 @@ iseq ${os_arch} x86_64 && set os_arch x86_64 || iseq ${os_arch} i386 && set os_arch i686 || isset ${dhcp-server} || goto static_ip set ipparam BOOTIF=${netX/mac} ip=dhcp -# archlinux_mirror is set in boot.cfg.j2 with isset guard, safe to use here set real_archlinux_mirror ${archlinux_mirror} goto goto_menu diff --git a/roles/netbootxyz/templates/menu/boot.cfg.j2 b/roles/netbootxyz/templates/menu/boot.cfg.j2 index 76b15f94ea..d4c5844d80 100644 --- a/roles/netbootxyz/templates/menu/boot.cfg.j2 +++ b/roles/netbootxyz/templates/menu/boot.cfg.j2 @@ -20,7 +20,7 @@ isset ${sigs_enabled} || set sigs_enabled {{ sigs_enabled | default(false) | boo isset ${sigs} || set sigs {{ sigs_location }} # set location of latest iPXE -isset ${ipxe_disk} || iseq ${platform} efi && set ipxe_disk netboot.xyz-snponly.efi || set ipxe_disk netboot.xyz-undionly.kpxe +iseq ${platform} efi && set ipxe_disk netboot.xyz-snponly.efi || set ipxe_disk netboot.xyz-undionly.kpxe # set default boot timeout isset ${boot_timeout} || set boot_timeout {{ boot_timeout }} @@ -41,51 +41,51 @@ isset {{ '${' + key + '_base_dir}' }} || set {{ key }}_base_dir {{ value.base_di # determine architectures and enable menu options ################################################# :architectures -isset ${menu_linux} || set menu_linux 1 -isset ${menu_bsd} || set menu_bsd 1 -isset ${menu_unix} || set menu_unix 1 -isset ${menu_freedos} || set menu_freedos 1 -isset ${menu_live} || set menu_live 1 -isset ${menu_pci} || set menu_pci 1 -isset ${menu_windows} || set menu_windows 1 -isset ${menu_utils} || set menu_utils 1 +set menu_linux 1 +set menu_bsd 1 +set menu_unix 1 +set menu_freedos 1 +set menu_live 1 +set menu_pci 1 +set menu_windows 1 +set menu_utils 1 iseq ${arch} i386 && goto i386 || iseq ${arch} x86_64 && goto x86_64 || iseq ${arch} arm64 && goto arm64 || goto architectures_end :x86_64 -isset ${menu_linux_i386} || set menu_linux_i386 0 +set menu_linux_i386 0 iseq ${platform} efi && goto efi || goto architectures_end :i386 -isset ${menu_linux} || set menu_linux 0 -isset ${menu_linux_i386} || set menu_linux_i386 1 -isset ${menu_bsd} || set menu_bsd 1 -isset ${menu_unix} || set menu_unix 0 -isset ${menu_freedos} || set menu_freedos 1 -isset ${menu_live} || set menu_live 0 -isset ${menu_windows} || set menu_windows 0 -isset ${menu_utils} || set menu_utils 1 +set menu_linux 0 +set menu_linux_i386 1 +set menu_bsd 1 +set menu_unix 0 +set menu_freedos 1 +set menu_live 0 +set menu_windows 0 +set menu_utils 1 iseq ${platform} efi && goto efi || goto architectures_end :arm64 -isset ${menu_linux} || set menu_linux 0 -isset ${menu_linux_arm} || set menu_linux_arm 1 -isset ${menu_unix} || set menu_unix 0 -isset ${menu_freedos} || set menu_freedos 0 -isset ${menu_live} || set menu_live 0 -isset ${menu_live_arm} || set menu_live_arm 1 -isset ${menu_windows} || set menu_windows 0 -isset ${menu_utils} || set menu_utils 0 -isset ${menu_utils_arm} || set menu_utils_arm 1 -isset ${menu_pci} || set menu_pci 0 +set menu_linux 0 +set menu_linux_arm 1 +set menu_unix 0 +set menu_freedos 0 +set menu_live 0 +set menu_live_arm 1 +set menu_windows 0 +set menu_utils 0 +set menu_utils_arm 1 +set menu_pci 0 iseq ${platform} efi && goto efi || goto architectures_end :efi -isset ${menu_bsd} || set menu_bsd 1 -isset ${menu_freedos} || set menu_freedos 0 -isset ${menu_unix} || set menu_unix 0 -isset ${menu_pci} || set menu_pci 0 +set menu_bsd 1 +set menu_freedos 0 +set menu_unix 0 +set menu_pci 0 goto architectures_end :architectures_end goto clouds @@ -111,22 +111,22 @@ goto clouds_end :metal_x86_64 isset ${cmdline} || set cmdline console=ttyS1,115200n8 -isset ${ipxe_disk} || iseq ${platform} efi && set ipxe_disk netboot.xyz-metal-snp.efi || set ipxe_disk netboot.xyz-metal.kpxe -isset ${menu_linux_i386} || set menu_linux_i386 0 -isset ${menu_freedos} || set menu_freedos 0 -isset ${menu_windows} || set menu_windows 0 -isset ${menu_pci} || iseq ${platform} efi && set menu_pci 0 || +iseq ${platform} efi && set ipxe_disk netboot.xyz-metal-snp.efi || set ipxe_disk netboot.xyz-metal.kpxe +set menu_linux_i386 0 +set menu_freedos 0 +set menu_windows 0 +iseq ${platform} efi && set menu_pci 0 || goto clouds_end :metal_arm64 isset ${cmdline} || set cmdline console=ttyAMA0,115200 -isset ${ipxe_disk} || set ipxe_disk netboot.xyz-metal-arm64-snp.efi -isset ${menu_bsd} || set menu_bsd 1 -isset ${menu_freedos} || set menu_freedos 0 -isset ${menu_live} || set menu_live 0 -isset ${menu_windows} || set menu_windows 0 -isset ${menu_utils} || set menu_utils 0 -isset ${menu_pci} || set menu_pci 0 +set ipxe_disk netboot.xyz-metal-arm64-snp.efi +set menu_bsd 1 +set menu_freedos 0 +set menu_live 0 +set menu_windows 0 +set menu_utils 0 +set menu_pci 0 goto clouds_end :clouds_end diff --git a/roles/netbootxyz/templates/menu/debian.ipxe.j2 b/roles/netbootxyz/templates/menu/debian.ipxe.j2 index d27f2f1052..305eb3c9b5 100644 --- a/roles/netbootxyz/templates/menu/debian.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/debian.ipxe.j2 @@ -30,7 +30,7 @@ goto mirrorcfg :older_release set older_release true -isset ${debian_mirror} || set debian_mirror {{ releases.debian.archive_mirror }} +set debian_mirror {{ releases.debian.archive_mirror }} echo Setting mirror to ${debian_mirror} clear debian_version echo -n Please set enter code name of release: ${} && read debian_version diff --git a/roles/netbootxyz/templates/menu/k3os.ipxe.j2 b/roles/netbootxyz/templates/menu/k3os.ipxe.j2 index 401dfb868d..43671d4cdb 100644 --- a/roles/netbootxyz/templates/menu/k3os.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/k3os.ipxe.j2 @@ -10,7 +10,7 @@ goto ${menu} || set os {{ releases.k3os.name }} set os_arch ${arch} iseq ${os_arch} x86_64 && set os_arch amd64 || -isset ${k3os_mirror} || set k3os_mirror {{ releases.k3os.mirror }} +set k3os_mirror {{ releases.k3os.mirror }} isset ${k3os_version} || set k3os_version latest isset ${k3os_install_device} || set k3os_install_device /dev/sda menu ${os} by Rancher diff --git a/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 b/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 index a4faa6c51c..e742fab293 100644 --- a/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/tinycore.ipxe.j2 @@ -3,7 +3,7 @@ # Tiny Core Linux # http://tinycorelinux.net/downloads.html -isset ${tinycore_mirror} || set tinycore_mirror {{ releases.tinycore.mirror }} +set tinycore_mirror {{ releases.tinycore.mirror }} :arch_menu set os Tiny Core Linux diff --git a/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 b/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 index 351bc2392e..d17bcb3874 100644 --- a/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/ubuntu.ipxe.j2 @@ -33,7 +33,7 @@ goto mirrorcfg :older_release set older_release true -isset ${ubuntu_mirror} || set ubuntu_mirror {{ releases.ubuntu.archive_mirror }} +set ubuntu_mirror {{ releases.ubuntu.archive_mirror }} echo Setting mirror to ${ubuntu_mirror} clear ubuntu_version echo -n Please set enter code name of release: ${} && read ubuntu_version