Quellcode durchsuchen

Merge pull request #564 from netbootxyz/4mlinux

add 4mlinux full and tool distros
Antony Messerli vor 5 Jahren
Ursprung
Commit
af012ea7e0
3 geänderte Dateien mit 47 neuen und 0 gelöschten Zeilen
  1. 3 0
      README.md
  2. 8 0
      roles/netbootxyz/defaults/main.yml
  3. 36 0
      roles/netbootxyz/templates/menu/4mlinux.ipxe.j2

+ 3 - 0
README.md

@@ -158,7 +158,9 @@ In addition to being able to host netboot.xyz locally, you can also create your
 
 | Name       | URL                     | Type |
 |------------|-------------------------|------|
+| 4MLinux | https://4mlinux.com/ | Kernel/Initrd |
 | ALT Linux Rescue | https://en.altlinux.org/Rescue | ISO - Memdisk |
+| BakAndImgCD | https://bakandimgcd.4mlinux.com/ | Kernel/Initrd |
 | Boot Repair CD | https://sourceforge.net/projects/boot-repair-cd/ | LiveCD |
 | Breakin | http://www.advancedclustering.com/products/software/breakin/ | Kernel/Initrd |
 | CAINE | https://www.caine-live.net/ | LiveCD |
@@ -171,6 +173,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
 | Rescatux | https://www.supergrubdisk.org/rescatux/ | LiveCD |
 | Super Grub2 Disk | http://www.supergrubdisk.org | ISO - Memdisk |
 | System Rescue CD | http://www.system-rescue-cd.org/ | LiveCD |
+| The Smallest Server Suite | https://thesss.4mlinux.com/ | Kernel/Initrd |
 | Ultimate Boot CD | http://www.ultimatebootcd.com | ISO - Memdisk |
 
 ### Feedback

+ 8 - 0
roles/netbootxyz/defaults/main.yml

@@ -487,6 +487,10 @@ releases:
 
 # utility values
 utilitiespcbios:
+  4mlinux:
+    name: "4MLinux"
+    enabled: true
+    type: "ipxemenu"
   avg:
     name: "AVG Rescue CD"
     enabled: true
@@ -562,6 +566,10 @@ utilitiespcbios:
 
 # efi utility values
 utilitiesefi:
+  4mlinux:
+    name: "4MLinux"
+    enabled: true
+    type: "ipxemenu"
   bootrepair:
     name: "Boot Repair CD"
     enabled: true

+ 36 - 0
roles/netbootxyz/templates/menu/4mlinux.ipxe.j2

@@ -0,0 +1,36 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os 4MLinux
+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 == "4mlinux" %}
+item {{ value.version }}-{{ value.flavor }} ${space} ${os} {{ value.version }} {{ value.flavor }}
+{% endif %}
+{% endfor %}
+choose version || goto exit
+goto ${version}
+
+
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "4mlinux" %}
+:{{ value.version }}-{{ value.flavor }}
+set url ${live_endpoint}{{ value.path }}
+goto boot
+
+{% endif %}
+{% endfor %}
+
+:boot
+imgfree
+kernel ${url}vmlinuz root=/dev/ram0 vga=normal initrd=initrd
+initrd ${url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0