Update disk.sh

This commit is contained in:
Kroese 2025-03-15 12:44:47 +01:00 committed by GitHub
parent f19ca5b6a3
commit f652076049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -610,10 +610,14 @@ DISK4_FILE="/storage4/${DISK_NAME}4"
if [ -z "$DISK_FMT" ]; then
if [ -f "$DISK1_FILE.qcow2" ]; then
DISK_FMT="qcow2"
else
if [[ "$BOOT" == *".qcow2" ]] && [ ! -f "$DISK1_FILE.img" ]; then
DISK_FMT="qcow2"
else
DISK_FMT="raw"
fi
fi
fi
if [ -z "$ALLOCATE" ]; then
ALLOCATE="N"