Browse Source

More arch cleanup

Moving to more consistent os_arch var and moving away from arch_a.

Removing unused code where not being utilzed.
Antony Messerli 3 năm trước cách đây
mục cha
commit
560b758ce3
52 tập tin đã thay đổi với 77 bổ sung126 xóa
  1. 0 2
      roles/netbootxyz/templates/menu/4mlinux.ipxe.j2
  2. 1 10
      roles/netbootxyz/templates/menu/bsd.ipxe.j2
  3. 1 2
      roles/netbootxyz/templates/menu/clonezilla.ipxe.j2
  4. 5 4
      roles/netbootxyz/templates/menu/devuan.ipxe.j2
  5. 1 2
      roles/netbootxyz/templates/menu/endeavouros.ipxe.j2
  6. 0 1
      roles/netbootxyz/templates/menu/gentoo.ipxe.j2
  7. 0 1
      roles/netbootxyz/templates/menu/gparted.ipxe.j2
  8. 0 1
      roles/netbootxyz/templates/menu/grml.ipxe.j2
  9. 7 5
      roles/netbootxyz/templates/menu/k3os.ipxe.j2
  10. 5 3
      roles/netbootxyz/templates/menu/kali.ipxe.j2
  11. 1 2
      roles/netbootxyz/templates/menu/kaspersky.ipxe.j2
  12. 1 1
      roles/netbootxyz/templates/menu/linux-arm.ipxe.j2
  13. 0 1
      roles/netbootxyz/templates/menu/linux.ipxe.j2
  14. 0 1
      roles/netbootxyz/templates/menu/live-arm.ipxe.j2
  15. 1 2
      roles/netbootxyz/templates/menu/live-backbox.ipxe.j2
  16. 1 2
      roles/netbootxyz/templates/menu/live-bluestar.ipxe.j2
  17. 1 2
      roles/netbootxyz/templates/menu/live-bodhi.ipxe.j2
  18. 1 2
      roles/netbootxyz/templates/menu/live-debian.ipxe.j2
  19. 1 2
      roles/netbootxyz/templates/menu/live-deepin.ipxe.j2
  20. 1 2
      roles/netbootxyz/templates/menu/live-devuan.ipxe.j2
  21. 1 2
      roles/netbootxyz/templates/menu/live-elementary.ipxe.j2
  22. 1 2
      roles/netbootxyz/templates/menu/live-endeavouros.ipxe.j2
  23. 1 2
      roles/netbootxyz/templates/menu/live-fatdog.ipxe.j2
  24. 1 2
      roles/netbootxyz/templates/menu/live-fedora.ipxe.j2
  25. 1 2
      roles/netbootxyz/templates/menu/live-feren.ipxe.j2
  26. 5 4
      roles/netbootxyz/templates/menu/live-k3os.ipxe.j2
  27. 1 2
      roles/netbootxyz/templates/menu/live-kali.ipxe.j2
  28. 1 2
      roles/netbootxyz/templates/menu/live-kodachi.ipxe.j2
  29. 1 2
      roles/netbootxyz/templates/menu/live-lite.ipxe.j2
  30. 1 2
      roles/netbootxyz/templates/menu/live-lxle.ipxe.j2
  31. 3 4
      roles/netbootxyz/templates/menu/live-manjaro.ipxe.j2
  32. 1 2
      roles/netbootxyz/templates/menu/live-mint.ipxe.j2
  33. 1 2
      roles/netbootxyz/templates/menu/live-neon.ipxe.j2
  34. 1 2
      roles/netbootxyz/templates/menu/live-nitrux.ipxe.j2
  35. 1 2
      roles/netbootxyz/templates/menu/live-parrot.ipxe.j2
  36. 1 2
      roles/netbootxyz/templates/menu/live-peppermint.ipxe.j2
  37. 1 2
      roles/netbootxyz/templates/menu/live-popos.ipxe.j2
  38. 1 2
      roles/netbootxyz/templates/menu/live-q4os.ipxe.j2
  39. 1 2
      roles/netbootxyz/templates/menu/live-raizo.ipxe.j2
  40. 1 2
      roles/netbootxyz/templates/menu/live-regolith.ipxe.j2
  41. 1 2
      roles/netbootxyz/templates/menu/live-septor.ipxe.j2
  42. 1 2
      roles/netbootxyz/templates/menu/live-sparky.ipxe.j2
  43. 1 2
      roles/netbootxyz/templates/menu/live-ubuntu.ipxe.j2
  44. 1 2
      roles/netbootxyz/templates/menu/live-voyager.ipxe.j2
  45. 1 2
      roles/netbootxyz/templates/menu/live-zorin.ipxe.j2
  46. 0 1
      roles/netbootxyz/templates/menu/live.ipxe.j2
  47. 3 4
      roles/netbootxyz/templates/menu/menu.ipxe.j2
  48. 4 7
      roles/netbootxyz/templates/menu/openbsd.ipxe.j2
  49. 1 2
      roles/netbootxyz/templates/menu/oracle.ipxe.j2
  50. 1 2
      roles/netbootxyz/templates/menu/systemrescue.ipxe.j2
  51. 8 6
      roles/netbootxyz/templates/menu/ubuntu.ipxe.j2
  52. 1 2
      roles/netbootxyz/templates/menu/unix.ipxe.j2

+ 0 - 2
roles/netbootxyz/templates/menu/4mlinux.ipxe.j2

@@ -5,7 +5,6 @@ goto ${menu} ||
 :live_menu
 set os 4MLinux
 menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "4mlinux" %}
@@ -15,7 +14,6 @@ item {{ value.version }}-{{ value.flavor }} ${space} ${os} {{ value.version }} {
 choose version || goto exit
 goto ${version}
 
-
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "4mlinux" %}
 :{{ value.version }}-{{ value.flavor }}

+ 1 - 10
roles/netbootxyz/templates/menu/bsd.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :bsd_menu
 
-menu BSD Installers - Current Selected Architecture [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu BSD Installers - Current Arch [ ${arch} ]
 
 # BSD based systems
 item --gap BSD Based Operating Systems
@@ -14,10 +13,6 @@ item --gap BSD Based Operating Systems
 item {{ key }} ${space} {{ value.name }}
 {% endif %}
 {% endfor %}
-# Options
-item --gap Options:
-iseq ${arch} x86_64 && set bits 64 || set bits 32
-item changebits ${space} Architecture: ${arch} (${bits}bit)
 choose menu || goto bsd_exit
 
 echo ${cls}
@@ -35,7 +30,3 @@ goto bsd_menu
 :bsd_exit
 clear menu
 exit 0
-
-:changebits
-iseq ${arch} x86_64 && set arch i386 || set arch x86_64
-goto bsd_menu

+ 1 - 2
roles/netbootxyz/templates/menu/clonezilla.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Clonezilla
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item debian ${space} ${os} Debian Based
 item ubuntu ${space} ${os} Ubuntu Based

+ 5 - 4
roles/netbootxyz/templates/menu/devuan.ipxe.j2

@@ -7,9 +7,10 @@ goto ${menu}
 
 :devuan
 set os Devuan
+iseq ${os_arch} x86_64 && set os_arch amd64 ||
 clear devuan_version
 clear older_release
-menu ${os} - ${arch_a}
+menu ${os} - ${os_arch}
 item --gap Latest Releases
 {% for item in releases.devuan.versions.stable %}
 item {{ item.code_name }} ${space} ${os} {{ item.name }}
@@ -23,7 +24,7 @@ goto mirrorcfg
 
 :mirrorcfg
 set mirrorcfg mirror/suite=${devuan_version}
-set dir ${devuan_base_dir}/dists/${devuan_version}/main/installer-${arch_a}/current/images/netboot/
+set dir ${devuan_base_dir}/dists/${devuan_version}/main/installer-${os_arch}/current/images/netboot/
 goto devuan_boot_type
 
 :devuan_boot_type
@@ -53,11 +54,11 @@ set install_params auto=true priority=critical preseed/url=${preseedurl}
 goto devuan_text
 
 :devuan_text
-set dir ${dir}debian-installer/${arch_a}
+set dir ${dir}debian-installer/${os_arch}
 goto devuan_boot
 
 :devuan_graphical
-set dir ${dir}gtk/debian-installer/${arch_a}
+set dir ${dir}gtk/debian-installer/${os_arch}
 set install_params vga=788
 goto devuan_boot
 

+ 1 - 2
roles/netbootxyz/templates/menu/endeavouros.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os EndeavourOS
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}

+ 0 - 1
roles/netbootxyz/templates/menu/gentoo.ipxe.j2

@@ -6,7 +6,6 @@
 :gentoo
 set os {{ releases.gentoo.name }}
 menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "gentoo" %}

+ 0 - 1
roles/netbootxyz/templates/menu/gparted.ipxe.j2

@@ -5,7 +5,6 @@ goto ${menu} ||
 :live_menu
 set os GParted Live
 menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "gparted" %}

+ 0 - 1
roles/netbootxyz/templates/menu/grml.ipxe.j2

@@ -5,7 +5,6 @@ goto ${menu} ||
 :live_menu
 set os Grml
 menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "grml" %}

+ 7 - 5
roles/netbootxyz/templates/menu/k3os.ipxe.j2

@@ -8,10 +8,12 @@ goto ${menu} ||
 
 :k3os
 set os {{ releases.k3os.name }}
+set os_arch ${arch}
+iseq ${os_arch} x86_64 && set os_arch x86_64 ||
 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 - ${arch_a}
+menu ${os} by Rancher
 menu ${os} install
 item --gap k3OS:
 item k3os_boot ${space} Begin install ${os} ${k3os_version}
@@ -65,13 +67,13 @@ goto k3os
 :k3os_boot
 isset ${k3os_base_url} || set k3os_base_url ${k3os_mirror}/latest/download
 set install_params k3os.install.silent=true k3os.mode=install k3os.install.config_url=${k3os_config_url} k3os.install.device=${k3os_install_device}
-set boot_params printk.devkmsg=on k3os.install.iso_url=${k3os_base_url}/k3os-${arch_a}.iso console=ttyS0 console=tty1
+set boot_params printk.devkmsg=on k3os.install.iso_url=${k3os_base_url}/k3os-${os_arch}.iso console=ttyS0 console=tty1
 imgfree
-kernel ${k3os_base_url}/k3os-vmlinuz-${arch_a} ${install_params} ${boot_params} {{ kernel_params }}
-initrd ${k3os_base_url}/k3os-initrd-${arch_a}
+kernel ${k3os_base_url}/k3os-vmlinuz-${os_arch} ${install_params} ${boot_params} {{ kernel_params }}
+initrd ${k3os_base_url}/k3os-initrd-${os_arch}
 echo
 echo MD5sums:
-md5sum k3os-vmlinuz-${arch_a} k3os-initrd-${arch_a}
+md5sum k3os-vmlinuz-${os_arch} k3os-initrd-${os_arch}
 boot
 
 :k3os_exit

+ 5 - 3
roles/netbootxyz/templates/menu/kali.ipxe.j2

@@ -7,14 +7,16 @@ goto ${menu} ||
 
 :kali
 set os {{ releases.kali.name }}
-menu ${os} - ${arch_a}
+set os_arch ${arch}
+iseq ${os_arch} x86_64 && set os_arch amd64 ||
+menu ${os} - ${os_arch}
 {% for item in releases.kali.versions %}
 item {{ item.code_name }} ${space} ${os} {{ item.name }}
 {% endfor %}
 choose version || goto kali_exit
 
 :deb_boot_type
-set dir ${kali_base_dir}/dists/kali-${version}/main/installer-${arch_a}/current/images/netboot
+set dir ${kali_base_dir}/dists/kali-${version}/main/installer-${os_arch}/current/images/netboot
 menu ${os} boot parameters
 item text ${os} text based install
 choose --default ${type} type || goto kali
@@ -23,7 +25,7 @@ echo ${cls}
 goto deb_${type}
 
 :deb_text
-set dir ${dir}/debian-installer/${arch_a}
+set dir ${dir}/debian-installer/${os_arch}
 goto deb_boot
 
 :deb_boot

+ 1 - 2
roles/netbootxyz/templates/menu/kaspersky.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Kaspersky Rescue Disk
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "kaspersky" %}

+ 1 - 1
roles/netbootxyz/templates/menu/linux-arm.ipxe.j2

@@ -3,7 +3,7 @@
 goto ${menu} ||
 
 :linux_menu
-menu Linux Installers - ARM ARCH **EXPERIMENTAL** Current Arch [ ${arch} ]
+menu Linux Installers - Current Arch [ ${arch} ]
 item --gap Popular Linux Operating Systems:
 item alpinelinux ${space} AlmaLinux
 item alpinelinux ${space} Alpine Linux

+ 0 - 1
roles/netbootxyz/templates/menu/linux.ipxe.j2

@@ -4,7 +4,6 @@ goto ${menu} ||
 
 :linux_menu
 menu Linux Installers - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap Linux Distros:
 {% for key, value in releases.items() | sort(attribute='1.name') %}
 {% if value.enabled is defined and value.menu == "linux" and value.enabled | bool %}

+ 0 - 1
roles/netbootxyz/templates/menu/live-arm.ipxe.j2

@@ -4,7 +4,6 @@ goto ${menu} ||
 
 :live_menu
 menu Live Boot Distributions - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap Live Boot Distributions
 item live-fedora ${space} Fedora
 choose menu || goto live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-backbox.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os BackBox
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item 7 ${space} ${os} 7
 item 6 ${space} ${os} 6

+ 1 - 2
roles/netbootxyz/templates/menu/live-bluestar.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Bluestar
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-bodhi.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Bodhi
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "bodhi" and value.version == "6" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-debian.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Debian Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item bullseye ${space} ${os} 11 (bullseye)
 item buster ${space} ${os} 10 (buster)

+ 1 - 2
roles/netbootxyz/templates/menu/live-deepin.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Deepin
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "Deepin" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-devuan.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Devuan
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "devuan" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-elementary.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os elementary OS
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item elementaryos-6-default-squash ${space} ${os} 6
 choose live_version || goto live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-endeavouros.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os EndeavourOS
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-fatdog.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Fatdog64
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "fatdog" %}

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

@@ -7,8 +7,7 @@ goto ${menu} ||
 
 :live_menu
 set os Fedora Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for item in releases.fedora.versions %}
 item {{ item.code_name }} ${space} ${os} {{ item.name }}

+ 1 - 2
roles/netbootxyz/templates/menu/live-feren.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Feren OS Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item current ${space} ${os} Current
 choose live_version || goto live_exit

+ 5 - 4
roles/netbootxyz/templates/menu/live-k3os.ipxe.j2

@@ -4,9 +4,10 @@ goto ${menu} ||
 
 :live_menu
 set os {{ releases.k3os.name }}
+set os_arch ${arch}
+iseq ${os_arch} x86_64 && set os_arch x86_64 ||
 set k3os_mirror {{ releases.k3os.mirror }}
-menu ${os} by Rancher - ${arch_a}
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os} by Rancher
 isset ${k3os_version} || set k3os_version latest
 menu ${os} live
 item --gap k3OS live version:
@@ -51,8 +52,8 @@ isset ${k3os_base_url} || set k3os_base_url ${k3os_mirror}/latest/download
 set install_params k3os.mode=live
 set boot_params printk.devkmsg=on console=ttyS0 console=tty1
 imgfree
-kernel ${k3os_base_url}/k3os-vmlinuz-${arch_a} ${install_params} ${boot_params} {{ kernel_params }}
-initrd ${k3os_base_url}/k3os-initrd-${arch_a}
+kernel ${k3os_base_url}/k3os-vmlinuz-${os_arch} ${install_params} ${boot_params} {{ kernel_params }}
+initrd ${k3os_base_url}/k3os-initrd-${os_arch}
 boot
 
 :live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-kali.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Kali Linux
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item rolling ${space} ${os} Rolling
 choose live_version || goto live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-kodachi.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Kodachi
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "kodachi" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-lite.ipxe.j2

@@ -4,9 +4,8 @@ goto ${menu} ||
 
 :live_menu
 set os Linux Lite
-menu ${os} - Current Arch [ ${arch} ]
+menu ${os}
 item --gap Use the username linuxlite with a blank password
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap ${os} Versions
 item 5 ${space} ${os} 5
 item 4 ${space} ${os} 4

+ 1 - 2
roles/netbootxyz/templates/menu/live-lxle.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os LXLE
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "lxle" %}

+ 3 - 4
roles/netbootxyz/templates/menu/live-manjaro.ipxe.j2

@@ -2,8 +2,7 @@
 
 :live_menu
 set os Manjaro
-menu ${os} Live - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os} Live
 set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
 item --gap ${os} Live versions
 item current ${space} ${os} Current Stable (20.x)
@@ -12,7 +11,7 @@ choose menu || goto live_exit
 goto ${menu}
 
 :stable
-menu ${os} Live Stable - Current Arch [ ${arch} ]
+menu ${os} Live Stable
 item --gap Currently during boot you need to press ctrl+d/ctrl+c
 item --gap repeatedly when init hangs on starting a download
 {% for key, value in endpoints.items() | sort %}
@@ -24,7 +23,7 @@ choose version || goto live_menu
 goto ${version}
 
 :current
-menu ${os} Live Current - Current Arch [ ${arch} ]
+menu ${os} Live Current
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "manjaro" and value.version == "current" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-mint.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Mint Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item 20 ${space} ${os} 20
 item 19 ${space} ${os} 19

+ 1 - 2
roles/netbootxyz/templates/menu/live-neon.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os KDE Neon
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item user ${space} ${os} User
 choose live_version || goto live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-nitrux.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Nitrux
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "nitrux" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-parrot.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Parrot OS
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "parrot" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-peppermint.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Peppermint
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item 10 ${space} ${os} 10
 choose live_version || goto live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-popos.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Pop os Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item focal ${space} ${os} 20.04
 item bionic ${space} ${os} 18.04

+ 1 - 2
roles/netbootxyz/templates/menu/live-q4os.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Q4OS Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item 3.12 ${space} ${os} 3.12
 choose live_version || goto live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-raizo.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Live Raizo
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "raizo" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-regolith.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Regolith
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item current ${space} ${os} Current
 choose live_version || goto live_exit

+ 1 - 2
roles/netbootxyz/templates/menu/live-septor.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Septor
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "septor" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-sparky.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os SparkyLinux Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item stable ${space} ${os} Stable
 item rolling ${space} ${os} Rolling

+ 1 - 2
roles/netbootxyz/templates/menu/live-ubuntu.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Ubuntu Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item hirsute ${space} ${os} 21.04
 item focal ${space} ${os} 20.04

+ 1 - 2
roles/netbootxyz/templates/menu/live-voyager.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Voyager Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "Voyager" %}

+ 1 - 2
roles/netbootxyz/templates/menu/live-zorin.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os Zorin Live
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 item 16 ${space} ${os} 16
 item 15 ${space} ${os} 15

+ 0 - 1
roles/netbootxyz/templates/menu/live.ipxe.j2

@@ -4,7 +4,6 @@ goto ${menu} ||
 
 :live_menu
 menu Live Boot Distributions - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap Live Boot Distributions
 item live-backbox ${space} BackBox
 item live-bluestar ${space} Bluestar Linux

+ 3 - 4
roles/netbootxyz/templates/menu/menu.ipxe.j2

@@ -37,13 +37,12 @@ iseq ${buildarch} arm64 && set arch arm64 ||
 :skip_arch_detect
 isset ${menu} && goto ${menu} ||
 
-isset ${ip} || dhcp || echo DHCP failed
+isset ${ip} || dhcp
 
 :main_menu
 clear menu
 set space:hex 20:20
 set space ${space:string}
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 isset ${next-server} && menu ${site_name} v${version} - next-server: ${next-server} || menu ${site_name}
 item --gap Default:
 item local ${space} Boot from local hdd
@@ -113,8 +112,8 @@ shell
 goto main_menu
 
 :change_arch
-iseq ${arch} x86_64 && set arch i386 && goto main_menu ||
-iseq ${arch} i386 && set arch x86_64 && goto main_menu ||
+iseq ${arch} x86_64 && set arch i386 && set menu_linux_i386 1 && set menu_linux 0 && goto main_menu ||
+iseq ${arch} i386 && set arch x86_64 && set menu_linux_i386 0 && set menu_linux 1 && goto main_menu ||
 goto main_menu
 
 :sig_check

+ 4 - 7
roles/netbootxyz/templates/menu/openbsd.ipxe.j2

@@ -5,6 +5,9 @@
 
 :openbsd_menu
 set os {{ releases.openbsd.name }}
+set os_arch ${arch}
+iseq ${os_arch} x86_64 && set os_arch amd64 ||
+iseq ${os_arch} i386 && set os_arch i386 ||
 menu ${os}
 {% for item in releases.openbsd.versions %}
 item {{ item.code_name }} ${space} ${os} {{ item.name }}
@@ -13,16 +16,10 @@ choose ver || goto openbsd_exit
 {% for item in releases.openbsd.versions %}
 iseq ${ver} {{ item.code_name }} && set image_ver {{ item.image_ver }} ||
 {% endfor %}
-iseq ${arch} x86_64 && goto openbsd_x64 ||
-set openbsd_arch i386
-goto boot_openbsd
-
-:openbsd_x64
-set openbsd_arch amd64
 goto boot_openbsd
 
 :boot_openbsd
-set src ${openbsd_mirror}/${openbsd_base_dir}/${ver}/${openbsd_arch}/cd${image_ver}.iso
+set src ${openbsd_mirror}/${openbsd_base_dir}/${ver}/${os_arch}/cd${image_ver}.iso
 imgfree
 initrd ${src}
 chain ${memdisk} iso raw

+ 1 - 2
roles/netbootxyz/templates/menu/oracle.ipxe.j2

@@ -7,8 +7,7 @@ goto ${menu} ||
 
 :oracle_menu
 set os Oracle Linux
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "oracle" %}

+ 1 - 2
roles/netbootxyz/templates/menu/systemrescue.ipxe.j2

@@ -4,8 +4,7 @@ goto ${menu} ||
 
 :live_menu
 set os System Rescue
-menu ${os} - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu ${os}
 set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}

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

@@ -7,13 +7,15 @@ goto ${menu}
 
 :ubuntu
 set os Ubuntu
+set os_arch ${arch}
+iseq ${os_arch} x86_64 && set os_arch x86_64 ||
 clear ubuntu_version
 clear install_type
 clear older_release
 clear install_url
 set install_type deb
 set install_priority critical
-menu ${os} - ${arch_a}
+menu ${os} - ${os_arch}
 item --gap Latest Releases
 {% for item in releases.ubuntu.versions %}
 item {{ item.code_name }} ${space} ${os} {{ item.name }}
@@ -34,13 +36,13 @@ 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
-set dir ${ubuntu_base_dir}/dists/${ubuntu_version}-updates/main/installer-${arch_a}/current/images/netboot/
+set dir ${ubuntu_base_dir}/dists/${ubuntu_version}-updates/main/installer-${os_arch}/current/images/netboot/
 goto boot_type
 
 :mirrorcfg
 set mirrorcfg mirror/suite=${ubuntu_version}
-set dir ${ubuntu_base_dir}/dists/${ubuntu_version}-updates/main/installer-${arch_a}/current/images/netboot/
-iseq ${ubuntu_version} focal && set dir ${ubuntu_base_dir}/dists/${ubuntu_version}-updates/main/installer-${arch_a}/current/legacy-images/netboot/ ||
+set dir ${ubuntu_base_dir}/dists/${ubuntu_version}-updates/main/installer-${os_arch}/current/images/netboot/
+iseq ${ubuntu_version} focal && set dir ${ubuntu_base_dir}/dists/${ubuntu_version}-updates/main/installer-${os_arch}/current/legacy-images/netboot/ ||
 goto boot_type
 
 :boot_type
@@ -77,7 +79,7 @@ iseq ${install_type} sub && goto ${ubuntu_version} ||
 
 :deb_boot
 echo Loading Ubuntu PXE netboot installer
-set dir ${dir}${menu}-installer/${arch_a}
+set dir ${dir}${menu}-installer/${os_arch}
 imgfree
 kernel ${ubuntu_mirror}/${dir}/linux ${install_params} ${mirrorcfg} {{ kernel_params }}
 initrd ${ubuntu_mirror}/${dir}/initrd.gz
@@ -103,7 +105,7 @@ goto sub_boot
 
 :sub_boot
 imgfree
-isset ${dhcp-server} && set netboot_params ip=dhcp url=http://releases.ubuntu.com/${codename}/ubuntu-${version_number}-live-server-${arch_a}.iso || set netboot_params
+isset ${dhcp-server} && set netboot_params ip=dhcp url=http://releases.ubuntu.com/${codename}/ubuntu-${version_number}-live-server-${os_arch}.iso || set netboot_params
 echo Loading Ubuntu Subiquity Network Installer...
 kernel ${kernel_url}vmlinuz root=/dev/ram0 ramdisk_size=1500000 ${netboot_params} ${install_params} {{ kernel_params }}
 initrd ${kernel_url}initrd

+ 1 - 2
roles/netbootxyz/templates/menu/unix.ipxe.j2

@@ -3,8 +3,7 @@
 goto ${menu} ||
 
 :unix_menu
-menu Unix Installers - Current Arch [ ${arch} ]
-iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+menu Unix Installers
 item --gap Unix Distros:
 {% for key, value in releases.items() | sort(attribute='1.name') %}
 {% if value.enabled is defined and value.menu == "unix" and value.enabled | bool %}