summaryrefslogtreecommitdiff
path: root/src/core/mount-setup.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-19 15:59:21 -0500
committerSven Eden <yamakuzure@gmx.net>2017-07-17 17:58:36 +0200
commitd2fee9031f20cefd32465836193982f5382baebc (patch)
tree94f426de692e858afc92bd8b57110fa4890e7e52 /src/core/mount-setup.c
parent98b626ac20d3f24be8a5f3755db8f1e7b611bad4 (diff)
core/mount-setup: if unified hierarchy is not supported, fall back to legacy
We need this to gracefully support older or strangely configured kernels. v2: - do not install a callback handler, just embed the right conditions into cg_is_*_wanted() v3: - fix bug in cg_is_legacy_wanted()
Diffstat (limited to 'src/core/mount-setup.c')
-rw-r--r--src/core/mount-setup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
index 694a03cc8..d8140bea9 100644
--- a/src/core/mount-setup.c
+++ b/src/core/mount-setup.c
@@ -100,7 +100,7 @@ static const MountPoint mount_table[] = {
{ "tmpfs", "/run", "tmpfs", "mode=755", MS_NOSUID|MS_NODEV|MS_STRICTATIME,
NULL, MNT_FATAL|MNT_IN_CONTAINER },
{ "cgroup", "/sys/fs/cgroup", "cgroup2", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
- cg_is_unified_wanted, MNT_FATAL|MNT_IN_CONTAINER },
+ cg_is_unified_wanted, MNT_IN_CONTAINER },
#endif // 0
{ "tmpfs", "/sys/fs/cgroup", "tmpfs", "mode=755", MS_NOSUID|MS_NOEXEC|MS_NODEV|MS_STRICTATIME,
cg_is_legacy_wanted, MNT_FATAL|MNT_IN_CONTAINER },
@@ -114,10 +114,9 @@ static const MountPoint mount_table[] = {
{ "cgroup", "/sys/fs/cgroup/elogind", "cgroup", "none,name=elogind,xattr", MS_NOSUID|MS_NOEXEC|MS_NODEV,
cg_is_legacy_wanted, MNT_IN_CONTAINER },
{ "cgroup", "/sys/fs/cgroup/elogind", "cgroup", "none,name=elogind", MS_NOSUID|MS_NOEXEC|MS_NODEV,
- cg_is_legacy_wanted, MNT_IN_CONTAINER },
#endif // 0
+ cg_is_legacy_wanted, MNT_IN_CONTAINER },
#if 0 /// UNNEEDED by elogind
- cg_is_legacy_wanted, MNT_FATAL|MNT_IN_CONTAINER },
{ "pstore", "/sys/fs/pstore", "pstore", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
NULL, MNT_NONE },
#ifdef ENABLE_EFI