[Buildroot] [PATCH 1/1] package/systemd: hybrid cgroupfs hierarchy for docker compatibility

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Nov 11 15:29:44 UTC 2019


On Mon, 11 Nov 2019 00:33:48 -0800
Christian Stewart <christian at paral.in> wrote:

> Docker fails to start with "Devices cgroup isn't mounted" as of systemd 243.
> According to the systemd documentation:
> 
>   systemd now defaults to the "unified" cgroup hierarchy setup during
>   build-time, i.e. -Ddefault-hierarchy=unified is now the build-time default.
>   Previously, -Ddefault-hierarchy=hybrid was the default. [...] Downstream
>   production distributions might want to continue to use
>   -Ddefault-hierarchy=hybrid (or even =legacy) for their builds as unfortunately
>   the popular container managers have not caught up with the kernel API changes.
> 
> Changing this option to "hybrid" or "legacy" fixes the Docker startup.
> 
> Reference: https://github.com/opencontainers/runc/issues/654
> 
> Signed-off-by: Christian Stewart <christian at paral.in>
> ---
>  package/systemd/systemd.mk | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks. It would be nice to have some runtime tests
around Docker, to verify that it is still working properly at runtime,
so that we can catch this kind of issues.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list