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

feat: Change raw allocation (#320)

parent b3598088
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -433,6 +433,14 @@ fi

DISK_EXT="$(fmt2ext "$DISK_FMT")" || exit $?

if [ -z "$ALLOCATE" ]; then
  if [[ "${DISK_FMT,,}" == "raw" ]]; then
    ALLOCATE="Y"
  else
    ALLOCATE="N"
  fi
fi

if [[ "$ALLOCATE" == [Nn]* ]]; then
  DISK_TYPE="growable"
  DISK_ALLOC="preallocation=off"
+2 −2
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ trap 'error "Status $? while: $BASH_COMMAND (line $LINENO/$BASH_LINENO)"' ERR
# Docker environment variables

: ${BOOT:=''}           # URL of the ISO file
: ${DEBUG:='N'}         # Disable debugging mode
: ${ALLOCATE:='N'}      # Disable preallocation
: ${DEBUG:='N'}         # Disable debugging
: ${ALLOCATE:=''}       # Preallocate diskspace
: ${ARGUMENTS:=''}      # Extra QEMU parameters
: ${CPU_CORES:='1'}     # Amount of CPU cores
: ${RAM_SIZE:='1G'}     # Maximum RAM amount