summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc')
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc6
1 files changed, 6 insertions, 0 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 b4f87d11..28f18a3f 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
@@ -482,6 +482,12 @@ dir_on_tmpfs() {
[ "x$(cut -d' ' -f3 <<< ${mount_line})" == "xtmpfs" ]
return $?
done
+ # NG: check if / is fully backed by hard drive
+ local dmsetup_conf="/run/openslx/dmsetup.conf"
+ if [ -s "$dmsetup_conf" ]; then
+ return $( ! grep -qE '^/dev/mapper/root\s+/\s+type=1' "$dmsetup_conf" )
+ fi
+ # else assume old-gen were / was in RAM
return 0
}