Kaynağa Gözat

adding bluestart live boot option

thelamer 5 yıl önce
ebeveyn
işleme
26e87dfc14

+ 1 - 0
README.md

@@ -102,6 +102,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
 |Arch Linux| https://www.archlinux.org| Yes | No |
 |Backbox|https://www.backbox.org | No | Yes |
 |BlackArch Linux|https://blackarch.org| Yes | Yes |
+|Bluestar Linux|https://sourceforge.net/projects/bluestarlinux| No | Yes |
 |Bodhi Linux|https://www.bodhilinux.com| No | Yes |
 |CentOS| https://centos.org | Yes | No |
 |CoreOS| http://coreos.com/ | Yes | No |

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

@@ -0,0 +1,36 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os Bluestar
+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 == "bluestar" %}
+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 == "bluestar" %}
+:{{ value.version }}
+set url ${live_endpoint}{{ value.path }}
+goto boot
+
+{% endif %}
+{% endfor %}
+
+:boot
+imgfree
+kernel ${url}vmlinuz archisobasedir=arch ip=dhcp archiso_http_srv=${url} initrd=initrd
+initrd ${url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0

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

@@ -7,6 +7,7 @@ menu Live Boot Distributions - Current Arch [ ${arch} ]
 iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
 item --gap Live Boot Distributions
 item live-backbox ${space} BackBox
+item live-bluestar ${space} Bluestar Linux
 item live-bodhi ${space} Bodhi
 item live-debian ${space} Debian
 item live-deepin ${space} Deepin