diff options
author | Jonathan Bauer | 2019-01-04 12:13:08 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-01-04 12:13:08 +0100 |
commit | e086a1118b3e04cb52b6af7ff7bddacf32e2fb87 (patch) | |
tree | cdcf11fd099e96d9873d849af8f356f4c941bbdc /core/modules/run-virt/data/opt/openslx | |
parent | [bwlp] add networkd-dispatcher to target (diff) | |
download | mltk-e086a1118b3e04cb52b6af7ff7bddacf32e2fb87.tar.gz mltk-e086a1118b3e04cb52b6af7ff7bddacf32e2fb87.tar.xz mltk-e086a1118b3e04cb52b6af7ff7bddacf32e2fb87.zip |
[run-virt] support new dmsetup stuff
... when detecting whether we are backed by hdd or not.
and yeah .. uhm ... it was already commited like 2 commits ago plus the
logic was needlessly inverted :)
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc | 2 |
1 files changed, 1 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 28f18a3f..dcaa0d58 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,7 @@ 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=1' "$dmsetup_conf" ) + return grep -qE '^/dev/mapper/root\s+/\s+type=0' "$dmsetup_conf" fi # else assume old-gen were / was in RAM return 0 |