[pkg-lxc-devel] Bug#844086: lxc: On "sysv-init", fail to initialize cgroup since "cgmanager" support dropped.
Evgeni Golov
evgeni at debian.org
Thu Jan 12 08:44:15 UTC 2017
Hi,
On Wed, Jan 11, 2017 at 10:49:49PM +0100, Thibaut Chèze wrote:
> I reopen this because I have seen another side effect.
> The LXC containers fail to start automatically during boot.
I'd argue that it is a slightly different (but totally related) bug.
But as you already merged this with #850212, let's handle it as one.
> I attach a patch to fix this.
> I haven't tested with "systemd" as "init", but I think it's not a
> problem ("systemd" doesn't use /etc/init.d/lxc script, right ?).
Correct, systemd uses a native unit.
And even if it would not: cgroupfs-mount does "the right thing" under
systemd.
> -# Required-Start: $syslog $remote_fs
> -# Required-Stop: $syslog $remote_fs
> +# Required-Start: $syslog $remote_fs cgroupfs-mount
> +# Required-Stop: $syslog $remote_fs cgroupfs-mount
> # Should-Start:
> # Should-Stop:
> # Default-Start: 2 3 4 5
I'd add it to Should-*, not Required-*, as it is perfectly fine to have
a different cgroupfs initializer.
Will discuss with upstream and include in the next upload.
More information about the Pkg-lxc-devel
mailing list