Skip to content

mount-android-partitions: Probe for schedtune nesting ability

Alfred Neumayer requested to merge ubports/focal_-_schedtune into ubports/focal

mechanicd would like to take advantage of the non-systemd managed schedtune cgroup present in certain generations of Android kernels. To do that the schedtune cgroup needs to be probed for functionality of nesting cgroups inside of each other, as that is what our Halium container does. Without this nesting patch [1] it fails to initialize the LXC container. So for the sake of having the functionality available on patched kernels, probe whether nesting of cgroups works properly, and unmount schedtune if not.

[1] https://gitlab.com/ubports/porting/reference-device-ports/android_kernel_google_bonito/-/commit/6452429d1f1dbdc9e1e310e82cc18664f2d1b56d

Merge request reports