Browse Source

testing gentoo on multiple archs

Antony Messerli 3 years ago
parent
commit
16e545d25b

+ 7 - 3
roles/netbootxyz/templates/menu/gentoo.ipxe.j2

@@ -5,11 +5,15 @@
 
 :gentoo
 set os {{ releases.gentoo.name }}
-menu ${os} - Current Arch [ ${arch} ]
+set os_arch ${arch}
+iseq ${os_arch} x86_64 && set os_arch amd64 ||
+iseq ${os_arch} i386 && set os_arch x86 ||
+iseq ${os_arch} arm64 && set os_arch arm64 ||
+menu ${os} - Current Arch [ ${os_arch} ]
 item --gap ${os} Versions
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "gentoo" %}
-item {{ value.version }} ${space} ${os} {{ value.version }}
+iseq os_arch {{ value.arch }} && item {{ value.version }}-{{ value.arch }} ${space} ${os} {{ value.version }} - {{ value.arch }} ||
 {% endif %}
 {% endfor %}
 choose gentoo_version || goto gentoo_exit
@@ -17,7 +21,7 @@ goto ${gentoo_version}
 
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "gentoo" %}
-:{{ value.version }}
+:{{ value.version }}-{{ value.arch }}
 set url ${live_endpoint}{{ value.path }}
 goto boot
 

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

@@ -9,6 +9,7 @@ item alpinelinux ${space} AlmaLinux
 item alpinelinux ${space} Alpine Linux
 item centos ${space} CentOS
 item debian ${space} Debian
+item gentoo ${space} Gentoo
 item fedora ${space} Fedora
 item rhel ${space} Red Hat Enterprise Linux
 item rockylinux ${space} Rocky Linux

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

@@ -7,6 +7,7 @@ menu Linux Installers - Current Arch [ ${arch} ]
 item --gap Popular Linux Operating Systems:
 item alpinelinux ${space} Alpine Linux
 item debian ${space} Debian
+item gentoo ${space} Gentoo
 item opensuse ${space} OpenSUSE
 choose menu || goto linux_exit
 echo ${cls}