Follow-up to cgroups must be initialized after /sys
@@ -359,11 +359,6 @@ int main(int argc, char *argv[])
if (fisdir("/proc/bus/usb"))
mount("none", "/proc/bus/usb", "usbfs", 0, NULL);
- /*
- * Initialize default control groups, if available
- */
- cgroup_init();
-
/*
* Load plugins early, finit.conf may contain references to
* features implemented by plugins.
@@ -432,6 +427,11 @@ int main(int argc, char *argv[])
_pe("Failed mounting /sys");
}
+ /*
+ * Initialize default control groups, if available
+ */
+ cgroup_init();
+
/*
* Initialize .conf system and load static /etc/finit.conf
* Also initializes global_rlimit[] for udevd, below.
