Unverified Commit d94d6480 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Write zeroes

parent 9279403d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -115,7 +115,9 @@ if (( SYSTEM_SIZE > SPACE )); then
  echo "ERROR: Not enough free space to create a 4 GB system disk." && exit 87
fi

if [ "$ALLOCATE" != "F" ]; then
if [ "$ALLOCATE" != "Z" ]; then

  # Cannot use truncate here because of swap partition

  if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then
    rm -f "${SYSTEM}"