Skip to content

Commit

Permalink
Merge pull request #1495 from netbootxyz/vanillaos
Browse files Browse the repository at this point in the history
 Adding support for Vanilla OS
  • Loading branch information
antonym committed Aug 3, 2024
2 parents f609193 + 300a855 commit b04cdd3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
| Ubuntu | https://www.ubuntu.com | Yes | Yes |
| VMware | https://www.vmware.com | User supplied media | No |
| VMware Photon | https://vmware.github.io/photon/ | Yes | No |
| Vanilla OS | https://vanillaos.org | No | Yes |
| Voyager | https://voyagerlive.org | No | Yes |
| VyOS | https://vyos.io | Yes | No |
| Zen Installer | https://sourceforge.net/projects/revenge-installer | Yes | No |
Expand Down
33 changes: 33 additions & 0 deletions roles/netbootxyz/templates/menu/live-vanillaos.ipxe
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!ipxe

goto ${menu} ||

:live_menu
set os Vanilla OS
menu ${os}
item --gap ${os} Versions
{% for key, value in endpoints.items() | sort %}
{% if value.os == "vanilla-os" %}
item vanilla_{{ value.version }} ${space} ${os} {{ value.version }}
{% endif %}
{% endfor %}
choose live_version || goto live_exit
goto ${live_version}

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

:boot
imgfree
kernel ${kernel_url}vmlinuz boot=live fetch=${kernel_url}/filesystem.squashfs config username=vanilla user-fullname=Vanilla quiet splash bgrt_disable modprobe.blacklist=nouveau initrd=initrd.magic ${cmdline}
initrd ${kernel_url}initrd.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 @@ -38,6 +38,7 @@ item live-sparky ${space} SparkyLinux
item live-tails ${space} Tails
item tinycore ${space} Tiny Core Linux
item live-ubuntu ${space} Ubuntu
item live-vanillaos ${space} Vanilla OS
item live-voyager ${space} Voyager
item live-zorin ${space} Zorin OS
choose menu || goto live_exit
Expand Down

0 comments on commit b04cdd3

Please sign in to comment.