Simplify wipe - remove dd zero, just use wipefs
This commit is contained in:
@@ -268,10 +268,9 @@ fi
|
|||||||
# Now wipe if requested
|
# Now wipe if requested
|
||||||
if [[ "$wipe_confirm" =~ ^[Yy]$ ]]; then
|
if [[ "$wipe_confirm" =~ ^[Yy]$ ]]; then
|
||||||
echo "Wiping partition table..."
|
echo "Wiping partition table..."
|
||||||
sudo wipefs -a "$SELECTED"
|
sudo wipefs -af "$SELECTED" 2>/dev/null || true
|
||||||
sudo dd if=/dev/zero of="$SELECTED" bs=1M count=10 status=none
|
|
||||||
sync
|
sync
|
||||||
echo " Wiped clean"
|
echo " Wiped"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user