diff options
author | Kay Sievers <kay@vrfy.org> | 2014-05-05 18:49:43 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-05-05 18:52:36 +0200 |
commit | 99a17ada9caa8e190b5cafa5cd3c19618feeff48 (patch) | |
tree | b9e0be7af59bee7dda5c2dc7a32d74a2dc8981d5 /src/core/main.c | |
parent | 61fb23db45c626d92b4e33f09b9287f58a3625a5 (diff) |
core: require cgroups filesystem to be available
We should no longer pretend that we can run in any sensible way
without the kernel supporting us with cgroups functionality.
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/main.c b/src/core/main.c index a6a5aa70f2..c1b0ffd9bb 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1184,21 +1184,6 @@ static void test_usr(void) { "Consult http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken for more information."); } -static void test_cgroups(void) { - - if (access("/proc/cgroups", F_OK) >= 0) - return; - - log_warning("CONFIG_CGROUPS was not set when your kernel was compiled. " - "Systems without control groups are not supported. " - "We will now sleep for 10s, and then continue boot-up. " - "Expect breakage and please do not file bugs. " - "Instead fix your kernel and enable CONFIG_CGROUPS. " - "Consult http://0pointer.de/blog/projects/cgroups-vs-cgroups.html for more information."); - - sleep(10); -} - static int initialize_join_controllers(void) { /* By default, mount "cpu" + "cpuacct" together, and "net_cls" * + "net_prio". We'd like to add "cpuset" to the mix, but @@ -1586,7 +1571,6 @@ int main(int argc, char *argv[]) { test_mtab(); test_usr(); - test_cgroups(); } if (arg_running_as == SYSTEMD_SYSTEM && arg_runtime_watchdog > 0) |