Explorar o código

adding devuan linux to live menu

thelamer %!s(int64=5) %!d(string=hai) anos
pai
achega
a7ecc0df44

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

@@ -0,0 +1,37 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os Devuan
+menu ${os} - Current Arch [ ${arch} ]
+iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+item --gap ${os} Versions
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "devuan" %}
+item {{ value.version }}-{{ value.flavor }} ${space} ${os} {{ value.version }} {{ value.flavor }}
+{% endif %}
+{% endfor %}
+choose live_version || goto live_exit
+goto ${live_version}
+
+
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "devuan" %}
+:{{ value.version }}-{{ value.flavor }}
+set squash_url ${live_endpoint}{{ value.path }}filesystem.squashfs
+set kernel_url ${live_endpoint}{{ value.path }}
+goto boot
+
+{% endif %}
+{% endfor %}
+
+:boot
+imgfree
+kernel ${kernel_url}vmlinuz boot=live username=devuan fetch=${squash_url} initrd=initrd
+initrd ${kernel_url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0

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

@@ -9,6 +9,7 @@ item --gap Live Boot Distributions
 item live-backbox ${space} BackBox
 item live-debian ${space} Debian
 item live-deepin ${space} Deepin
+item live-devuan ${space} Devuan
 item live-elementary ${space} elementary OS
 item live-fedora ${space} Fedora
 item live-feren ${space} Feren OS