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

Always allocate

parent b8642548
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -120,8 +120,13 @@ if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then
  echo "ERROR: Could not allocate a file for the system disk." && exit 88
fi

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

  echo "Install: Preallocating 4 GB of diskspace..."
  dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes status=none

fi

# Check if file exists
if [ ! -f "${SYSTEM}" ]; then
    echo "ERROR: System disk does not exist ($SYSTEM)" && exit 89