Procházet zdrojové kódy

adding sparky live os menu

thelamer před 5 roky
rodič
revize
ea10f4b5f4

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

@@ -0,0 +1,56 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os SparkyLinux Live
+menu ${os} - Current Arch [ ${arch} ]
+iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+item --gap ${os} Versions
+item stable ${space} ${os} Stable
+item rolling ${space} ${os} Rolling
+choose live_version || goto live_exit
+menu ${os} ${live_version}
+item --gap ${os} Flavors
+goto ${live_version}
+
+:stable
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "sparky" and value.version == "stable" %}
+item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
+{% endif %}
+{% endfor %}
+goto flavor_select
+
+:rolling
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "sparky" and value.version == "rolling" %}
+item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
+{% endif %}
+{% endfor %}
+goto flavor_select
+
+:flavor_select
+choose flavor || goto live_menu
+echo ${cls}
+goto ${flavor} ||
+
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "sparky" %}
+{% set kernel_name = value.kernel %}
+:{{ key }}
+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 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

@@ -21,6 +21,7 @@ item live-mint ${space} Mint
 item live-peppermint ${space} Peppermint
 item live-popos ${space} Pop OS
 item live-regolith ${space} Regolith
+item live-sparky ${space} SparkyLinux
 item live-tails ${space} Tails
 item live-ubuntu ${space} Ubuntu
 item live-voyager ${space} Voyager