feat: Change raw allocation (#320)
This commit is contained in:
parent
b3598088bc
commit
7998d931bb
2 changed files with 10 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue