Fix for issue #381 (#383)

* feat: Refactor multi-disk code
This commit is contained in:
Kroese
2023-11-16 20:36:30 +01:00
committed by GitHub
parent 04bd8a1639
commit c9e6e65991
3 changed files with 197 additions and 214 deletions

View File

@@ -10,7 +10,6 @@ trap 'error "Status $? while: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR
# Docker environment variables
: ${URL:=''} # URL of the PAT file
: ${GPU:='N'} # Enable GPU passthrough
: ${DEBUG:='N'} # Enable debugging mode
: ${ALLOCATE:='Y'} # Preallocate diskspace
@@ -32,4 +31,9 @@ rm -f /run/dsm.url
rm -f /run/qemu.pid
rm -f /run/qemu.count
# Check folder
STORAGE="/storage"
[ ! -d "$STORAGE" ] && error "Storage folder (${STORAGE}) not found!" && exit 13
return 0