[systemd-devel] [PATCH] mount-setup: failure to mount cgroup controllers is not fatal

Michal Schmidt mschmidt at redhat.com
Fri Apr 22 04:14:58 PDT 2011


Even after commit e5a53dc7 "cgroup: be nice to Ingo Molnar" systemd still
hangs on boot on a kernel without CONFIG_CGROUPS.

mount_setup() must not fail when cgroup controllers cannot be mounted.

https://bugzilla.redhat.com/show_bug.cgi?id=628004
---

 src/mount-setup.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mount-setup.c b/src/mount-setup.c
index db5c253..dcf237b 100644
--- a/src/mount-setup.c
+++ b/src/mount-setup.c
@@ -258,5 +258,7 @@ int mount_setup(void) {
         /* Create a few directories we always want around */
         mkdir("/run/systemd", 0755);
 
-        return mount_cgroup_controllers();
+        mount_cgroup_controllers();
+
+        return 0;
 }



More information about the systemd-devel mailing list