diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-17 21:20:02 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-17 21:20:02 -0400 |
commit | e1e23d3d43bf6477ea83840864c4287947134272 (patch) | |
tree | e8267c9d0718b8a15c108f885be25455815e7adb /src | |
parent | c6e6ff77190a5e2c0953bbdeeba41daeccca459c (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-x | src/initrd/make-total-destroy | 9 |
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 | ||
2 | usage() { | ||
3 | exec >&2 | ||
4 | echo "Usage: $0 <blockdev>" | ||
5 | exit 1 | ||
6 | } | ||
7 | [ -b "$1" ] || usage | ||
8 | parted "$1" mklabel gpt | ||
9 | grok-block "$1" \ No newline at end of file | ||