Skip to content

Commit

Permalink
package/systemd: hybrid cgroupfs hierarchy for docker compatibility
Browse files Browse the repository at this point in the history
Docker fails to start with "Devices cgroup isn't mounted." 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: opencontainers/runc#654

Signed-off-by: Christian Stewart <christian@paral.in>
  • Loading branch information
paralin committed Nov 11, 2019
1 parent 5ff8969 commit 8986363
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/systemd/systemd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 8986363

Please sign in to comment.