summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc
index 7a8dad60..932c4aad 100644
--- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc
+++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc
@@ -483,9 +483,11 @@ dir_on_tmpfs() {
return $?
done
# NG: check if / is fully backed by hard drive
- local dmsetup_conf="/run/openslx/dmsetup.conf"
- if [ -s "$dmsetup_conf" ]; then
- grep -qE '^/dev/mapper/root\s+/\s+type=0' "$dmsetup_conf"
+ local dmsetup_state="/run/openslx/dmsetup.state"
+ if [ -s "$dmsetup_state" ]; then
+ local dnbd3_cow_dev="$SLX_DNBD3_DEVICE_COW"
+ [ -z "$dnbd3_cow_dev" ] && dnbd3_cow_dev="/dev/mapper/root"
+ grep -qE "^${dnbd3_cow_dev}\s+/\s+type=0" "$dmsetup_state"
return $?
fi
# else assume old-gen were / was in RAM