mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +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
|
done
|
||||||
|
|
||||||
echo "----> Drop existing partitions"
|
echo "----> Drop existing partitions"
|
||||||
wipefs -a /dev/sda
|
wipefs -a /dev/sda || true
|
||||||
sfdisk --delete /dev/sda
|
sfdisk --delete /dev/sda || true
|
||||||
|
|
||||||
echo "-----> Wait for cleanup"
|
echo "-----> Wait for cleanup"
|
||||||
sleep 3
|
sleep 3
|
||||||
|
@ -33,10 +33,10 @@ for PV in $(pvs --noheadings 2>/dev/null | sed -e 's/^[[:space:]]*//' | cut -d"
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "----> Drop existing partitions"
|
echo "----> Drop existing partitions"
|
||||||
wipefs -a /dev/sda
|
wipefs -a /dev/sda || true
|
||||||
sfdisk --delete /dev/sda
|
sfdisk --delete /dev/sda || true
|
||||||
wipefs -a /dev/sdb
|
wipefs -a /dev/sdb || true
|
||||||
sfdisk --delete /dev/sdb
|
sfdisk --delete /dev/sdb || true
|
||||||
|
|
||||||
echo "-----> Wait for cleanup"
|
echo "-----> Wait for cleanup"
|
||||||
sleep 3
|
sleep 3
|
||||||
|
Loading…
Reference in New Issue
Block a user