From 1558b0d875380caca7ec2936e2624950642f30a2 Mon Sep 17 00:00:00 2001 From: TJ Computer Services Date: Thu, 28 Nov 2024 04:52:30 +0000 Subject: [PATCH] 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> --- vm/mikrotik-routeros.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vm/mikrotik-routeros.sh b/vm/mikrotik-routeros.sh index ffe43608..93ca5403 100644 --- a/vm/mikrotik-routeros.sh +++ b/vm/mikrotik-routeros.sh @@ -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:-}"