diff options
author | Simon Rettberg | 2024-09-06 16:33:03 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-09-06 16:33:03 +0200 |
commit | 8fd8336d1d0dad6d5828ac146028f6481c36284e (patch) | |
tree | a4fcb03fa12b8111cdeee479d192150897c023a8 | |
parent | [dhcpc-busybox] bridging: Add another sleep for good measure (diff) | |
download | mltk-8fd8336d1d0dad6d5828ac146028f6481c36284e.tar.gz mltk-8fd8336d1d0dad6d5828ac146028f6481c36284e.tar.xz mltk-8fd8336d1d0dad6d5828ac146028f6481c36284e.zip |
[run-virt] If CoW is enable,d always use DNBD3
Even if configured to use NFS/CIFS for VM access.
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc | 4 |
1 files changed, 2 insertions, 2 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 9f18d0ec..2a42aa87 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,11 +169,11 @@ 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" - elif isempty SLX_DNBD3_SERVERS || [ "x${SLX_VM_DNBD3}" != "xyes" ]; then - writelog "\tCan't use dnbd3 as no servers are given in config, or SLX_VM_DNBD3 is not set to yes" elif [ -n "$DMSD_COW_SESSION" ]; then writelog "Setting up DNBD3 CoW session" setup_dnbd3_cow + elif isempty SLX_DNBD3_SERVERS || ! is_on "${SLX_VM_DNBD3}"; then + writelog "\tCan't use dnbd3 as no servers are given in config, or SLX_VM_DNBD3 is not set to yes" elif setup_dnbd3_proxy; then writelog "\tImage setup done." elif ! check_dep dnbd3-fuse fusermount; then |