Skip to content

Commit 1558b0d

Browse files
tjcomservMickLesk
andauthored
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 <[email protected]>
1 parent 1cb822b commit 1558b0d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vm/mikrotik-routeros.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,16 @@ nfs | dir)
251251
DISK_REF="$VMID/"
252252
DISK_IMPORT="-format qcow2"
253253
;;
254-
btrfs | zfspool)
255-
DISK_EXT=""
254+
btrfs)
255+
DISK_EXT=".raw"
256256
DISK_REF="$VMID/"
257257
DISK_IMPORT="-format raw"
258258
;;
259+
zfspool)
260+
DISK_EXT=""
261+
DISK_REF=""
262+
DISK_IMPORT="-format raw"
263+
;;
259264
esac
260265

261266
DISK_VAR="vm-${VMID}-disk-0${DISK_EXT:-}"

0 commit comments

Comments
 (0)