From f31f6e5fca75974adb1ae8300854916512b484bb Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 4 Jan 2019 11:12:55 +0100 Subject: [kiosk*] rework and introduce kiosk mode modules changed from slxbrowser only support to modular hook structure to support additional browser, i.e. chromium NOTE: kiosk-chromium and kiosk-netpoint only make sense with the new gen --- .../vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser') 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 } -- cgit v1.2.3-55-g7522