Skip to content

systemd does not start as PID!=1: missing cgroup setup #1

@flonatel

Description

@flonatel

When using release1, systemd stops with:

Cannot determine cgroup we are running in: No such file or directory
Failed to allocate manager object: No such file or directory

The analyze revealed, that when booting with sysv-init (only), the directory /sys/fs/cgroups is empty, when booting with systemd it contains the some cgroups.

systemd assumes, that the cgroup setup is done when it is not started as pid 1:

systemd/src/core/main.c:

    if (getpid() == 1) {
            install_crash_handler();

            r = mount_cgroup_controllers(arg_join_controllers); /* <<<<<<< Init of cgroup */
            if (r < 0)
                    goto finish;
    }

But: pipexec (and also sysv-init) does obviously not know anything about cgroups.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions