Fix mikrotik-routeros when using nfs (#3247)

This commit is contained in:
Matt Alexander 2024-06-21 17:08:46 -07:00 committed by GitHub
parent 8a61cad71f
commit dafe17ac95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -254,13 +254,12 @@ nfs | dir)
btrfs | zfspool)
DISK_EXT=""
DISK_REF="$VMID/"
DISK_FORMAT="subvol"
DISK_IMPORT="-format raw"
;;
esac
DISK_VAR="vm-${VMID}-disk-0${DISK_EXT:-}"
DISK_REF="${STORAGE}:${DISK_VAR:-}"
DISK_REF="${STORAGE}:${DISK_REF:-}${DISK_VAR:-}"
msg_ok "Extracted Mikrotik RouterOS CHR Disk Image"
msg_info "Creating Mikrotik RouterOS CHR VM"