Explorar o código

Ubuntu spins (#1620)

* Add ubuntu-spins menu
Antony Messerli hai 22 horas
pai
achega
562a13bcad

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

@@ -39,6 +39,7 @@ item live-sparky ${space} SparkyLinux
 item live-tails ${space} Tails
 item tinycore ${space} Tiny Core Linux
 item live-ubuntu ${space} Ubuntu
+item ubuntu-spins ${space} Ubuntu Spins
 item live-vanillaos ${space} Vanilla OS
 item live-voyager ${space} Voyager
 item live-zorin ${space} Zorin OS

+ 35 - 0
roles/netbootxyz/templates/menu/ubuntu-spins.ipxe.j2

@@ -0,0 +1,35 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os Ubuntu Spins
+menu ${os}
+item --gap ${os} Versions
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "ubuntu-spins" %}
+item spins_{{ value.version }} ${space} ${os} {{ value.version }}
+{% endif %}
+{% endfor %}
+choose live_version || goto live_exit
+menu ${os}
+item --gap ${os} Flavors
+goto ${boot_spins}
+
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "ubuntu-spins" %}
+:spins_{{ value.version }}
+set kernel_url ${live_endpoint}{{ value.path }}
+goto boot
+{% endif %}
+{% endfor %}
+
+:boot
+imgfree
+kernel ${kernel_url}vmlinuz iso-chooser-menu boot=casper ip=dhcp initrd=initrd.magic ${cmdline}
+initrd ${kernel_url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0