summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-09-06 16:35:11 +0200
committerSimon Rettberg2024-09-06 16:35:11 +0200
commit2d1746709e22568c18d636d9f71248e7b5a6ba4d (patch)
tree299101b6f0dc9c06d0b1c4dfaf4d841340a98880
parent[run-virt] If CoW is enable,d always use DNBD3 (diff)
downloadmltk-2d1746709e22568c18d636d9f71248e7b5a6ba4d.tar.gz
mltk-2d1746709e22568c18d636d9f71248e7b5a6ba4d.tar.xz
mltk-2d1746709e22568c18d636d9f71248e7b5a6ba4d.zip
[run-virt] Also bail out if var is missing for dnbd3 cow
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc
index 2a42aa87..5df6e12f 100644
--- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc
+++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc
@@ -169,6 +169,7 @@ setup_image_access_default() {
# See if we should setup dnbd3 image access at all
if ! isset SRC_IMG_RELATIVE; then
writelog "\tCan't use dnbd3 as SRC_IMG_RELATIVE is not set"
+ [ -n "$DMSD_COW_SESSION" ] && cleanexit 1
elif [ -n "$DMSD_COW_SESSION" ]; then
writelog "Setting up DNBD3 CoW session"
setup_dnbd3_cow