Skip to content

Commit

Permalink
Add Garuda Linux menus
Browse files Browse the repository at this point in the history
  • Loading branch information
antonym committed Oct 8, 2021
1 parent d96a979 commit b0df66c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
| Flatcar Linux | https://kinvolk.io/flatcar-container-linux/ | Yes | No |
| FreeBSD | https://freebsd.org | Yes, disk image | No |
| FreeDOS | http://www.freedos.org | ISO - Memdisk| No |
| Garuda Linux | https://garudalinux.org/ | No | Yes |
| Gentoo | https://gentoo.org | Yes | Yes |
| Harvester | https://harvesterhci.io | Yes | No |
| hrmpf | https://github.com/leahneukirchen/hrmpf/ | No | Yes |
Expand Down
38 changes: 38 additions & 0 deletions roles/netbootxyz/templates/menu/live-garuda.ipxe.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!ipxe

# Garuda Linux
# https://garudalinux.org/

goto ${menu} ||

:live-garuda
set os Garuda
menu ${os} Live
set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
item --gap ${os} Live versions
{% for key, value in endpoints.items() | sort %}
{% if value.os == "garuda" %}
item {{ value.version }}-{{ value.flavor }} ${space} ${os} {{ value.flavor | title }} ({{ value.version }})
{% endif %}
{% endfor %}
choose menu || goto live_exit
goto ${menu}

{% for key, value in endpoints.items() | sort %}
{% if value.os == "garuda" %}
:{{ value.version }}-{{ value.flavor }}
set fetch_url ${live_endpoint}{{ value.path }}
set kernel_url ${live_endpoint}{{ value.path }}
goto boot

{% endif %}
{% endfor %}
:boot
imgfree
kernel ${kernel_url}vmlinuz misobasedir=garuda ${ipparam} miso_http_srv=${fetch_url} nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 driver=free {{ kernel_params }}
initrd ${kernel_url}initramfs.img
boot

:live_exit
clear menu
exit 0
1 change: 1 addition & 0 deletions roles/netbootxyz/templates/menu/live.ipxe.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ item live-endeavouros ${space} EndeavourOS
item live-fatdog ${space} Fatdog64
item live-fedora ${space} Fedora
item live-feren ${space} Feren OS
item live-garuda ${space} Garuda Linux
item live-hrmpf ${space} hrmpf
item live-k3os ${space} K3OS
item live-kali ${space} Kali
Expand Down

0 comments on commit b0df66c

Please sign in to comment.