From 56839d8f701513b3f8c95a70af250cf61b4a6a27 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 8 Jan 2019 16:43:50 +0100 Subject: [run-virt] fix buggy return statement --- .../vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/modules/run-virt') 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 -- cgit v1.2.3-55-g7522