summaryrefslogtreecommitdiff
path: root/src/initrd/make-total-destroy
blob: 10f8f3dbaf57ae3e9c64d53ffe5f3fb74238ce75 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
usage() {
  exec >&2
  echo "Usage: $0 <blockdev>"
  exit 1
}
[ -b "$1" ] || usage
parted "$1" mklabel gpt
grok-block "$1"