package/systemd: hybrid cgroupfs hierarchy for docker compatibility
authorChristian Stewart <christian@paral.in>
Mon, 11 Nov 2019 08:33:48 +0000 (00:33 -0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 11 Nov 2019 15:28:36 +0000 (16:28 +0100)
commit272695277e2eaef5fa34bfb23bb3eb815a8ed933
treef4a8af02012fa65a34dfeb2dbeded696c9a1a261
parent26d67a2599d6c88facd5178de853fa355244e7c2
package/systemd: hybrid cgroupfs hierarchy for docker compatibility

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@paral.in>
Tested-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/systemd/systemd.mk