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"