mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Currently, the cgroupfs-mount package only mounts a cgroup v1 hierarchy, but v1 is considered legacy and obsolete, while v2 has been around for a while now, and is required by some packages (e.g. podman whines about v1). cgroupfs-mount has not had a release in almost 8 years now, and only the occasional commit since then and until more than 3 years ago. It's not going to evolve... Add a new package with a simple-enough sysv startup script, that mounts the cgroup v2 hierarchy filesystem. For systemd, there's nothing to do, as systemd handles the mount by itself. Since both cgroup v1 and v2 use the same mountpoint, we can't have both enabled at the same time, and thus we restrict the v2 to be hidden when v1 is enabled (quite a few packages select the v1; changing those would require that they be validated against v2 first...) Note that, due to limitations in Kconfig, cgroupfs-v2-mount will appear indented below cgroupfs-mount, because it has a (negative) dependency on it. This spurious indentation is unfortunate and annoying, but benign; fixing that would require breaking the dependency with a random Kconfig symbol, which we don't have, and which we decided not to introduce just for this one use-case (well, there's host-gnupg and host-gnupg2 that have the exact same issue, but meh...) Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Fiona Klute <fiona.klute@gmx.de> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
11 lines
318 B
Plaintext
11 lines
318 B
Plaintext
config BR2_PACKAGE_CGROUPFS_V2_MOUNT
|
|
bool "cgroupfs-v2-mount"
|
|
depends on !BR2_INIT_SYSTEMD
|
|
depends on !BR2_PACKAGE_CGROUPFS_MOUNT
|
|
help
|
|
Mount the cgroup v2 hierarchy filesystem.
|
|
|
|
comment "cgroupfs-v2-mount is incompatible with cgroupfs-mount"
|
|
depends on !BR2_INIT_SYSTEMD
|
|
depends on BR2_PACKAGE_CGROUPFS_MOUNT
|