summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes
diff options
context:
space:
mode:
authorJonathan Bauer2019-01-08 16:43:50 +0100
committerJonathan Bauer2019-01-08 16:43:50 +0100
commit56839d8f701513b3f8c95a70af250cf61b4a6a27 (patch)
tree71532f7ca53ac8b1906547fd7cd7773a51cccda5 /core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes
parent[iptables-helper] add busybox binaries to PATH (diff)
downloadmltk-56839d8f701513b3f8c95a70af250cf61b4a6a27.tar.gz
mltk-56839d8f701513b3f8c95a70af250cf61b4a6a27.tar.xz
mltk-56839d8f701513b3f8c95a70af250cf61b4a6a27.zip
[run-virt] fix buggy return statement
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes')
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc3
1 files changed, 2 insertions, 1 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 dcaa0d58..7a8dad60 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
@@ -485,7 +485,8 @@ dir_on_tmpfs() {
# 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=0' "$dmsetup_conf"
+ grep -qE '^/dev/mapper/root\s+/\s+type=0' "$dmsetup_conf"
+ return $?
fi
# else assume old-gen were / was in RAM
return 0