ソースを参照

add DBAN from assets for UEFI and update README

thelamer 5 年 前
コミット
875de134b2
3 ファイル変更46 行追加6 行削除
  1. 3 3
      README.md
  2. 5 3
      roles/netbootxyz/defaults/main.yml
  3. 38 0
      roles/netbootxyz/templates/menu/dban.ipxe

+ 3 - 3
README.md

@@ -145,9 +145,9 @@ In addition to being able to host netboot.xyz locally, you can also create your
 | Name       | URL                     | Installer Kernel | Live OS |
 |------------|-------------------------|------------------|---------|
 |ALT Linux Rescue|https://en.altlinux.org/Rescue| ISO - Memdisk | - |
-|Breakin|http://www.advancedclustering.com/products/software/breakin/| ISO - Memdisk | - |
-|Clonezilla|http://www.clonezilla.org/| ISO - Memdisk | - |
-|DBAN|http://www.dban.org/| ISO - Memdisk | - |
+|Breakin|http://www.advancedclustering.com/products/software/breakin/| Yes | Yes |
+|Clonezilla|http://www.clonezilla.org/| - | Yes |
+|DBAN|http://www.dban.org/| Yes | Yes |
 |GParted|http://gparted.org| ISO - Memdisk | - |
 |Grml|http://grml.org| ISO - Memdisk | - |
 |Memtest|http://www.memtest.org/| Yes | - |

+ 5 - 3
roles/netbootxyz/defaults/main.yml

@@ -383,9 +383,7 @@ utilitiespcbios:
   dban:
     name: "DBAN"
     enabled: true
-    type: "memdisk"
-    version: "2.3.0"
-    util_path: "http://master.dl.sourceforge.net/project/dban/dban/dban-2.3.0/dban-2.3.0_i586.iso"
+    type: "ipxemenu"
   gparted:
     name: "GParted"
     enabled: true
@@ -423,6 +421,10 @@ utilitiesefi:
     name: "Clonezilla"
     enabled: true
     type: "ipxemenu"
+  dban:
+    name: "DBAN"
+    enabled: true
+    type: "ipxemenu"
 
 bootloaders:
   legacy:

+ 38 - 0
roles/netbootxyz/templates/menu/dban.ipxe

@@ -0,0 +1,38 @@
+#!ipxe
+
+goto ${menu} ||
+
+:dban_menu
+menu DBAN {{ endpoints.dban.version }} (Darik's Boot and Nuke)
+set kernel_url ${live_endpoint}{{ endpoints.dban.path }}DBAN.BZI
+item --gap THIS SOFTWARE DESTROYS DATA
+item --gap EVERY BOOT OPTION IS DESTRUCTIVE
+item --gap DO NOT PROCEED IF YOU DO NOT KNOW WHAT THIS IS
+item dban_exit ${space} Go Back
+item dban_options ${space} Proceed I know what I am doing
+choose menu || goto dban_exit
+goto ${menu}
+
+:dban_options
+clear menu
+menu DBAN {{ endpoints.dban.version }} (Darik's Boot and Nuke)
+item --gap Choose a wipe method:
+item dodshort ${space} Wipe all disks with the short DoD 5220.22-M method
+item dod522022m ${space} Wipe all disks with the DoD 5220.22-M method
+item dod3pass ${space} Wipe all disks with the DoD 5220.22-M method (3 pass)
+item ops2 ${space} Wipe all disks with the RCMP TSSIT OPS-II method
+item gutmann ${space} Wipe all disks with the Gutmann method
+item prng ${space} Wipe all disks with the PRNG Stream method
+item quick ${space} Wipe all disks with the Quick Erase method
+choose nuke_method || goto dban_exit
+goto dban_boot
+
+
+:dban_boot
+imgfree
+kernel ${kernel_url} nuke="dwipe --autonuke --method ${nuke_method}" silent vga=785
+boot
+
+:dban_exit
+clear menu
+exit 0