Remove changing DISK_REF for zfspool mikrotik-routeros.sh (#529)

* Remove changing DISK_REF for zfspool mikrotik-routeros.sh

When running the original script using zfspool as storage I  got the error:

"unable to parse zfs volume name..."

Removing the part that cchnages the DISK_REF is disk is to be located on a zfspool has solved this.

* Fix in live repo

---------

Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
TJ Computer Services 2024-11-28 04:52:30 +00:00 committed by GitHub
parent 1cb822b34c
commit 1558b0d875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -251,11 +251,16 @@ nfs | dir)
DISK_REF="$VMID/"
DISK_IMPORT="-format qcow2"
;;
btrfs | zfspool)
DISK_EXT=""
btrfs)
DISK_EXT=".raw"
DISK_REF="$VMID/"
DISK_IMPORT="-format raw"
;;
zfspool)
DISK_EXT=""
DISK_REF=""
DISK_IMPORT="-format raw"
;;
esac
DISK_VAR="vm-${VMID}-disk-0${DISK_EXT:-}"