openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
132 stars 183 forks source link

Fix startdockerd with cgroup v1 #932

Closed Vogtinator closed 1 year ago

Vogtinator commented 1 year ago

If cgroup v1 is used, neither /sys/fs/cgroup/unified nor /sys/fs/cgroup/cpu.stat exist, so it goes into the fallback path to mount the cgroup hierarchy manually. This is mounted on top of the actual cgroup mounts, breaking them. Fix this by recognizing a working cgroupv1 mount.

Vogtinator commented 1 year ago

FWICT mount -t cgroup cgroup /sys/fs/cgroup -o devices is also broken and can't work, but that's another topic...

Vogtinator commented 1 year ago

FWICT mount -t cgroup cgroup /sys/fs/cgroup -o devices is also broken and can't work, but that's another topic...

Fixed that as well.