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:
parent
ae2a9404a4
commit
b0390905c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user