1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00

fix: do not fail on disk wipe

This commit is contained in:
Thomas Boerger 2022-10-31 11:35:39 +01:00
parent ae2a9404a4
commit b0390905c7
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B
2 changed files with 6 additions and 6 deletions

@ -33,8 +33,8 @@ for PV in $(pvs --noheadings 2>/dev/null | sed -e 's/^[[:space:]]*//' | cut -d"
done
echo "----> Drop existing partitions"
wipefs -a /dev/sda
sfdisk --delete /dev/sda
wipefs -a /dev/sda || true
sfdisk --delete /dev/sda || true
echo "-----> Wait for cleanup"
sleep 3

@ -33,10 +33,10 @@ for PV in $(pvs --noheadings 2>/dev/null | sed -e 's/^[[:space:]]*//' | cut -d"
done
echo "----> Drop existing partitions"
wipefs -a /dev/sda
sfdisk --delete /dev/sda
wipefs -a /dev/sdb
sfdisk --delete /dev/sdb
wipefs -a /dev/sda || true
sfdisk --delete /dev/sda || true
wipefs -a /dev/sdb || true
sfdisk --delete /dev/sdb || true
echo "-----> Wait for cleanup"
sleep 3