From 4635be51e225a814c590e9841682e366baa68006 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Mon, 15 Jan 2018 20:20:52 +0100 Subject: [PATCH] If elogind is just started, /sys/fs/cgroup/elogind might not exist, yet on legacy and hybrid systems. --- src/basic/cgroup-util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 884589f99..7f86c532c 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -2569,8 +2569,6 @@ static int cg_unified_update(void) { unified_cache = CGROUP_UNIFIED_SYSTEMD; unified_systemd_v232 = true; } else { - if (statfs("/sys/fs/cgroup/elogind/", &fs) < 0) - return -errno; #endif // 0 if (!F_TYPE_EQUAL(fs.f_type, CGROUP_SUPER_MAGIC)) return -ENOMEDIUM; -- 2.30.2