feat: Support committing to image
This commit is contained in:
parent
91be01cdf6
commit
5b14246478
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ echo "❯ For support visit $SUPPORT"
|
|||
|
||||
: "${BOOT:=""}" # URL of the ISO file
|
||||
: "${DEBUG:="N"}" # Disable debugging
|
||||
: "${COMMIT:="N"}" # Commit to image
|
||||
: "${MACHINE:="virt"}" # Machine selection
|
||||
: "${ALLOCATE:=""}" # Preallocate diskspace
|
||||
: "${ARGUMENTS:=""}" # Extra QEMU parameters
|
||||
|
@ -80,6 +81,8 @@ fi
|
|||
|
||||
# Check folder
|
||||
|
||||
[[ "$COMMIT" != [Nn]* ]] && STORAGE="/local"
|
||||
|
||||
if [ ! -d "$STORAGE" ]; then
|
||||
error "Storage folder ($STORAGE) not found!" && exit 13
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue