Simplify wipe - remove dd zero, just use wipefs

This commit is contained in:
Aaron D. Lee
2026-01-08 13:45:20 -05:00
parent a30ec33b98
commit ff42398509

View File

@@ -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 ""