Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/systemd: hybrid cgroupfs hierarchy for docker compatibility
@ 2019-11-11  8:33 Christian Stewart
  2019-11-11  9:04 ` James Hilliard
  2019-11-11 15:29 ` Thomas Petazzoni
  0 siblings, 2 replies; 8+ messages in thread
From: Christian Stewart @ 2019-11-11  8:33 UTC (permalink / raw)
  To: buildroot

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>
---
 package/systemd/systemd.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 94d5f703cd..92490eb86b 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -26,6 +26,7 @@ SYSTEMD_CONF_OPTS += \
 	-Dima=false \
 	-Dldconfig=false \
 	-Ddefault-dnssec=no \
+	-Ddefault-hierarchy=hybrid \
 	-Dtests=false \
 	-Dsplit-bin=true \
 	-Dsplit-usr=false \
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-11 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-11  8:33 [Buildroot] [PATCH 1/1] package/systemd: hybrid cgroupfs hierarchy for docker compatibility Christian Stewart
2019-11-11  9:04 ` James Hilliard
2019-11-11 10:09   ` Jérémy ROSEN
2019-11-11 14:39     ` Thomas Petazzoni
2019-11-11 14:56       ` Jérémy ROSEN
2019-11-11 15:01         ` Thomas Petazzoni
2019-11-11 15:29 ` Thomas Petazzoni
2019-11-11 20:27   ` Christian Stewart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox