Переглянути джерело

Merge pull request #555 from netbootxyz/septor

adding septor to the live menu
Antony Messerli 5 роки тому
батько
коміт
471aa92f85

+ 1 - 0
README.md

@@ -141,6 +141,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
 |Red Hat Enterprise Linux|https://www.redhat.com| User supplied media | No |
 |Regolith|https://regolith-linux.org| No | Yes |
 |Scientific Linux|https://scientificlinux.org| Yes | No |
+|Septor|https://septor.sourceforge.io| No | Yes |
 |Slackware|https://www.slackware.com| Yes | No |
 |SparkyLinux|https://sparkylinux.org/| No | Yes |
 |Tails|https://tails.boum.org | No | Yes |

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

@@ -0,0 +1,37 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os Septor
+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 == "septor" %}
+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 == "septor" %}
+:{{ 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 boot=live fetch=${squash_url} initrd=initrd
+initrd ${kernel_url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0

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

@@ -28,6 +28,7 @@ item live-peppermint ${space} Peppermint
 item live-popos ${space} Pop OS
 item live-q4os ${space} Q4OS
 item live-regolith ${space} Regolith
+item live-septor ${space} Septor
 item live-sparky ${space} SparkyLinux
 item live-tails ${space} Tails
 item tinycore ${space} Tiny Core Linux