summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/opt/openslx
diff options
context:
space:
mode:
authorJonathan Bauer2019-01-04 11:12:55 +0100
committerJonathan Bauer2019-01-04 11:12:55 +0100
commitf31f6e5fca75974adb1ae8300854916512b484bb (patch)
treec11c197a7fce4dcd41d30572cdd996d47509f746 /core/modules/run-virt/data/opt/openslx
parent[beamergui] Close stdout/err when respawning beamergui (diff)
downloadmltk-f31f6e5fca75974adb1ae8300854916512b484bb.tar.gz
mltk-f31f6e5fca75974adb1ae8300854916512b484bb.tar.xz
mltk-f31f6e5fca75974adb1ae8300854916512b484bb.zip
[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
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.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
}