diff --git a/scripts/chnum-partitions b/scripts/chnum-partitions index 4f1107d..73d1424 100755 --- a/scripts/chnum-partitions +++ b/scripts/chnum-partitions @@ -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 diff --git a/scripts/utgard-partitions b/scripts/utgard-partitions index 1fd6a20..6b050cd 100755 --- a/scripts/utgard-partitions +++ b/scripts/utgard-partitions @@ -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