diff --git a/rpi/flash-image.sh b/rpi/flash-image.sh index c2ddf5f..8e740d8 100755 --- a/rpi/flash-image.sh +++ b/rpi/flash-image.sh @@ -268,10 +268,9 @@ fi # Now wipe if requested if [[ "$wipe_confirm" =~ ^[Yy]$ ]]; then echo "Wiping partition table..." - sudo wipefs -a "$SELECTED" - sudo dd if=/dev/zero of="$SELECTED" bs=1M count=10 status=none + sudo wipefs -af "$SELECTED" 2>/dev/null || true sync - echo " Wiped clean" + echo " Wiped" fi echo ""