瀏覽代碼

adding focal to live menu for stock ubuntu flavors

thelamer 5 年之前
父節點
當前提交
63ebe3646c
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      roles/netbootxyz/templates/menu/live-ubuntu.ipxe.j2

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

@@ -7,6 +7,7 @@ set os Ubuntu Live
 menu ${os} - Current Arch [ ${arch} ]
 iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap ${os} Versions
+item focal ${space} ${os} 20.04
 item bionic ${space} ${os} 18.04
 item eoan ${space} ${os} 19.10
 choose live_version || goto live_exit
@@ -14,6 +15,14 @@ menu ${os} ${live_version}
 item --gap ${os} Flavors
 goto ${live_version}
 
+:focal
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "ubuntu" and 'squash' in key and value.version == "20.04" %}
+item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
+{% endif %}
+{% endfor %}
+goto flavor_select
+
 :bionic
 {% for key, value in endpoints.items() | sort %}
 {% if value.os == "ubuntu" and 'squash' in key and value.version == "18.04" %}
@@ -61,6 +70,12 @@ kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} in
 initrd ${kernel_url}initrd
 boot
 
+:20.04-boot
+imgfree
+kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} initrd=initrd
+initrd ${kernel_url}initrd
+boot
+
 :live_exit
 clear menu
 exit 0