From 2d1746709e22568c18d636d9f71248e7b5a6ba4d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 6 Sep 2024 16:35:11 +0200 Subject: [run-virt] Also bail out if var is missing for dnbd3 cow --- .../data/opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-55-g7522