Quellcode durchsuchen

add rescuezilla to menus (#890)

* add rescuezilla to menus
Ryan Kuba vor 4 Jahren
Ursprung
Commit
a6f6099898

+ 1 - 0
README.md

@@ -174,6 +174,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
 | Kaspersky Rescue Disk | https://support.kaspersky.com/viruses/krd18 | LiveCD |
 | Memtest | http://www.memtest.org/ | Kernel |
 | Rescatux | https://www.supergrubdisk.org/rescatux/ | LiveCD |
+| Rescuezilla | https://rescuezilla.com/ | LiveCD |
 | ShredOS | https://github.com/PartialVolume/shredos.x86_64 | Kernel | 
 | Super Grub2 Disk | http://www.supergrubdisk.org | ISO - Memdisk |
 | System Rescue | https://system-rescue.org/ | LiveCD |

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

@@ -598,6 +598,10 @@ utilitiesefi:
       initrd=initrd
     name: Rescatux
     type: direct
+  rescuezilla:
+    enabled: true
+    name: Rescuezilla
+    type: ipxemenu
   shredos:
     enabled: true
     name: ShredOS
@@ -674,6 +678,10 @@ utilitiespcbios:
       initrd=initrd
     name: Rescatux
     type: direct
+  rescuezilla:
+    enabled: true
+    name: Rescuezilla
+    type: ipxemenu
   shredos:
     enabled: true
     name: ShredOS

+ 30 - 0
roles/netbootxyz/templates/menu/rescuezilla.ipxe.j2

@@ -0,0 +1,30 @@
+#!ipxe
+
+# Rescuezilla Disk imaging
+# https://rescuezilla.com/
+
+:rescuezilla
+set os {{ utilitiesefi.rescuezilla.name }}
+menu ${os} Live CD
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "rescuezilla" %}
+item {{ value.os }}_{{ value.version }} ${space} ${os} {{ value.version }}
+{% endif %}
+{% endfor %}
+choose rescuezilla_version || goto rescuezilla_exit
+goto ${rescuezilla_version}
+
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "rescuezilla" %}
+:{{ value.os }}_{{ value.version }}
+set kernel_url ${live_endpoint}{{ value.path }}
+imgfree
+kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${kernel_url}filesystem.squashfs initrd=initrd ${cmdline}
+initrd ${kernel_url}initrd
+boot
+{% endif %}
+{% endfor %}
+
+:rescuezilla_exit
+clear menu
+exit 0