소스 검색

Merge pull request #439 from netbootxyz/newlive

adding new menus for assets
Antony Messerli 5 년 전
부모
커밋
123bc84d2f
3개의 변경된 파일57개의 추가작업 그리고 0개의 파일을 삭제
  1. 27 0
      roles/netbootxyz/templates/menu/live-deepin.ipxe
  2. 28 0
      roles/netbootxyz/templates/menu/live-lite.ipxe
  3. 2 0
      roles/netbootxyz/templates/menu/live.ipxe.j2

+ 27 - 0
roles/netbootxyz/templates/menu/live-deepin.ipxe

@@ -0,0 +1,27 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os Deepin
+menu ${os} - Current Arch [ ${arch} ]
+iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+item --gap ${os} Versions
+item 15 ${space} ${os} 15
+choose live_version || goto live_exit
+goto ${live_version}
+
+:15
+set squash_url ${live_endpoint}{{ endpoints["deepin-15-squash"].path }}filesystem.squashfs
+set kernel_url ${live_endpoint}{{ endpoints["deepin-15-squash"].path }}
+goto live-boot
+
+:15-boot
+imgfree
+kernel ${kernel_url}vmlinuz boot=live fetch=${squash_url} union=overlay livecd-installer initrd=initrd
+initrd ${kernel_url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0

+ 28 - 0
roles/netbootxyz/templates/menu/live-lite.ipxe

@@ -0,0 +1,28 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os Linux Lite
+menu ${os} - Current Arch [ ${arch} ]
+item --gap Use the username linuxlite with a blank password
+iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+item --gap ${os} Versions
+item 4 ${space} ${os} 4
+choose live_version || goto live_exit
+goto ${live_version}
+
+:4
+set squash_url ${live_endpoint}{{ endpoints["linux-lite-4-squash"].path }}filesystem.squashfs
+set kernel_url ${live_endpoint}{{ endpoints["linux-lite-4-squash"].path }}
+goto live-boot
+
+:4-boot
+imgfree
+kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} username=linuxlite userfullname=linuxlite initrd=initrd
+initrd ${kernel_url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0

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

@@ -8,10 +8,12 @@ iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap Live Boot Distributions
 item live-backbox ${space} BackBox
 item live-debian ${space} Debian
+item live-deepin ${space} Deepin
 item live-elementary ${space} elementary OS
 item live-fedora ${space} Fedora
 item live-kali ${space} Kali
 item live-neon ${space} KDE Neon
+item live-lite ${space} Linux Lite
 item live-q4os ${space} Q4OS
 item live-manjaro ${space} Manjaro
 item live-mint ${space} Mint