summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-06-17 21:20:02 -0400
committerAndrew Cady <d@jerkface.net>2019-06-17 21:20:02 -0400
commite1e23d3d43bf6477ea83840864c4287947134272 (patch)
treee8267c9d0718b8a15c108f885be25455815e7adb /src
parentc6e6ff77190a5e2c0953bbdeeba41daeccca459c (diff)
make-total-destroy
This tool is a convenience for testing. Run it in the initrd shell and it will erase the hard drive so that you can install Samizdat fresh.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/initrd/make-total-destroy9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/initrd/make-total-destroy b/src/initrd/make-total-destroy
new file mode 100755
index 0000000..10f8f3d
--- /dev/null
+++ b/src/initrd/make-total-destroy
@@ -0,0 +1,9 @@
1#!/bin/sh
2usage() {
3 exec >&2
4 echo "Usage: $0 <blockdev>"
5 exit 1
6}
7[ -b "$1" ] || usage
8parted "$1" mklabel gpt
9grok-block "$1" \ No newline at end of file