Wipe the filesystem before doing any actions

This commit is contained in:
Andreas Zweili 2024-01-15 18:31:16 +01:00
parent 6ab3e5e21e
commit 8fb4e4282b
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ VGROUP=grouptoformat
create_gpt() {
echo "Create partition table."
wipefs -a $DISK
parted --script $DISK mklabel gpt
parted --script $DISK mkpart ESP fat32 0% 1GiB
parted --script $DISK set 1 esp on