|
@@ -3,38 +3,57 @@
|
|
|
goto ${menu} ||
|
|
|
|
|
|
:live_menu
|
|
|
-menu Live Ubuntu Default (Unity) - Current Arch [ ${arch} ]
|
|
|
+set os Ubuntu Live
|
|
|
+menu ${os} - Current Arch [ ${arch} ]
|
|
|
iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
|
|
|
-item --gap Live Ubuntu Default (Unity)
|
|
|
+item --gap ${os} Versions
|
|
|
+item bionic ${space} ${os} 18.04
|
|
|
+item eoan ${space} ${os} 19.10
|
|
|
+choose live_version || goto live_exit
|
|
|
+menu ${os} ${live_version}
|
|
|
+item --gap ${os} Flavors
|
|
|
+goto ${live_version}
|
|
|
+
|
|
|
+:bionic
|
|
|
{% for key, value in endpoints.items() | sort %}
|
|
|
-{% if value.os == "ubuntu" and 'squash' in key %}
|
|
|
+{% if value.os == "ubuntu" and 'squash' in key and value.version == "18.04" %}
|
|
|
+item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
|
|
|
+{% endif %}
|
|
|
+{% endfor %}
|
|
|
+goto flavor_select
|
|
|
+
|
|
|
+:eoan
|
|
|
+{% for key, value in endpoints.items() | sort %}
|
|
|
+{% if value.os == "ubuntu" and 'squash' in key and value.version == "19.10" %}
|
|
|
item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
|
|
|
{% endif %}
|
|
|
{% endfor %}
|
|
|
-choose menu || goto live_exit
|
|
|
+goto flavor_select
|
|
|
+
|
|
|
+:flavor_select
|
|
|
+choose flavor || goto live_menu
|
|
|
echo ${cls}
|
|
|
-goto ${menu} ||
|
|
|
-iseq ${sigs_enabled} true && goto verify_sigs || goto change_menu
|
|
|
+goto ${flavor} ||
|
|
|
|
|
|
{% for key, value in endpoints.items() | sort %}
|
|
|
{% if value.os == "ubuntu" and 'squash' in key %}
|
|
|
{% set kernel_name = value.kernel %}
|
|
|
:{{ key }}
|
|
|
-imgfree
|
|
|
-set fetch_url ${live_endpoint}{{ value.path }}filesystem.squashfs
|
|
|
+set squash_url ${live_endpoint}{{ value.path }}filesystem.squashfs
|
|
|
{% for key, value in endpoints.items() | sort %}
|
|
|
{% if key == kernel_name %}
|
|
|
-kernel ${live_endpoint}{{ value.path }}vmlinuz boot=casper netboot=http fetch=${fetch_url} initrd=initrd
|
|
|
-initrd ${live_endpoint}{{ value.path }}initrd
|
|
|
-boot
|
|
|
+set kernel_url ${live_endpoint}{{ value.path }}
|
|
|
+goto boot
|
|
|
{% endif %}
|
|
|
{% endfor %}
|
|
|
{% endif %}
|
|
|
{% endfor %}
|
|
|
|
|
|
-:change_menu
|
|
|
-chain ${menu}.ipxe || goto error
|
|
|
-goto live_menu
|
|
|
+:boot
|
|
|
+imgfree
|
|
|
+kernel ${kernel_url}vmlinuz boot=casper netboot=http fetch=${squash_url} initrd=initrd
|
|
|
+initrd ${kernel_url}initrd
|
|
|
+boot
|
|
|
|
|
|
:live_exit
|
|
|
clear menu
|