systemd: switch to unified cgroup hierarchy by default
See https://www.redhat.com/sysadmin/fedora-31-control-group-v2 for details on why this is desirable, and how it impacts containers. Users that need to keep using the old cgroup hierarchy can re-enable it by setting `systemd.unifiedCgroupHierarchy` to `false`. Well-known candidates not supporting that hierarchy, like docker and hidepid=… will disable it automatically. Fixes #73800
This commit is contained in:
@@ -281,9 +281,9 @@ stdenv.mkDerivation {
|
||||
"-Dmount-path=${utillinux}/bin/mount"
|
||||
"-Dumount-path=${utillinux}/bin/umount"
|
||||
"-Dcreate-log-dirs=false"
|
||||
# Upstream uses cgroupsv2 by default. To support docker and other
|
||||
# container managers we still need v1.
|
||||
"-Ddefault-hierarchy=hybrid"
|
||||
|
||||
# Use cgroupsv2. This is already the upstream default, but better be explicit.
|
||||
"-Ddefault-hierarchy=unified"
|
||||
# Upstream defaulted to disable manpages since they optimize for the much
|
||||
# more frequent development builds
|
||||
"-Dman=true"
|
||||
|
||||
Reference in New Issue
Block a user