1
0
Эх сурвалжийг харах

Merge pull request #520 from netbootxyz/kodachi

Add kodachi to live menu
Antony Messerli 5 жил өмнө
parent
commit
8ec013064b

+ 1 - 0
README.md

@@ -117,6 +117,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
 |IPFire|https://www.ipfire.org| Yes | No |
 |Kali Linux|https://www.kali.org| Yes | Yes |
 |KDE Neon|https://neon.kde.org | No | Yes |
+|Kodachi|https://www.digi77.com/linux-kodachi/ | No | Yes |
 |Linux Lite| https://www.linuxliteos.com | No | Yes |
 |Q4OS|https://q4os.org | No | Yes |
 |Mageia|https://www.mageia.org| Yes | No |

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


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

@@ -0,0 +1,37 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os Kodachi
+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 == "kodachi" %}
+item {{ value.version }} ${space} ${os} {{ value.version }}
+{% endif %}
+{% endfor %}
+choose live_version || goto live_exit
+goto ${live_version}
+
+
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "kodachi" %}
+:{{ value.version }}
+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 ip=dhcp boot=casper netboot=http fetch=${squash_url} initrd=initrd
+initrd ${kernel_url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0

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


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


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


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

@@ -14,6 +14,7 @@ item live-elementary ${space} elementary OS
 item live-fedora ${space} Fedora
 item live-feren ${space} Feren OS
 item live-kali ${space} Kali
+item live-kodachi ${space} Kodachi
 item live-neon ${space} KDE Neon
 item live-lite ${space} Linux Lite
 item live-q4os ${space} Q4OS