Skip to content

Commit

Permalink
Add multi arch support for grml
Browse files Browse the repository at this point in the history
  • Loading branch information
antonym committed Dec 23, 2024
1 parent 47a72ce commit fdd6dcd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions roles/netbootxyz/templates/menu/grml.ipxe.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ goto ${menu} ||

:live_menu
set os Grml
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 [ ${arch} ]
item --gap ${os} Versions
{% for key, value in endpoints.items() | sort %}
{% if value.os == "grml" %}
item {{ value.version }}-{{ value.flavor }} ${space} ${os} {{ value.version }} {{ value.flavor }}
iseq ${os_arch} {{ value.arch }} && item {{ value.version }}-{{ value.flavor }}-{{ value.arch }} ${space} ${os} {{ value.version }} {{ value.flavor }} - {{ value.arch }}
{% endif %}
{% endfor %}
choose live_version || goto live_exit
Expand All @@ -17,7 +21,7 @@ goto ${live_version}

{% for key, value in endpoints.items() | sort %}
{% if value.os == "grml" %}
:{{ value.version }}-{{ value.flavor }}
:{{ value.version }}-{{ value.flavor }}-{{ value.arch }}
set squash_url ${live_endpoint}{{ value.path }}filesystem.squashfs
set kernel_url ${live_endpoint}{{ value.path }}
goto boot
Expand Down

0 comments on commit fdd6dcd

Please sign in to comment.