From 121ba0cae3f9b2ff27dd0525855811692effa728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Fri, 21 Aug 2026 11:03:53 +0200 Subject: [PATCH] Fix system mount list for chroot operations Add /sys/fs/cgroup to the bind mount list as it is not transported into the chroot when bind mounting only /sys. This fixes problems for applications that runs as part of image scripts or package scripts and required access to the cgroups interface. --- kiwi/system/root_bind.py | 3 ++- test/unit/system/root_bind_test.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kiwi/system/root_bind.py b/kiwi/system/root_bind.py index 914290ae411..ea09ed81d00 100644 --- a/kiwi/system/root_bind.py +++ b/kiwi/system/root_bind.py @@ -71,7 +71,8 @@ def __init__(self, root_init: RootInit): '/proc', '/dev', '/var/run/dbus', - '/sys' + '/sys', + '/sys/fs/cgroup' ] # share the following directory with the host self.shared_location = '/' + Defaults.get_shared_cache_location() diff --git a/test/unit/system/root_bind_test.py b/test/unit/system/root_bind_test.py index 95f80ac0b9f..49bda5bd1cb 100644 --- a/test/unit/system/root_bind_test.py +++ b/test/unit/system/root_bind_test.py @@ -33,7 +33,8 @@ def setup(self): '/proc', '/dev', '/var/run/dbus', - '/sys' + '/sys', + '/sys/fs/cgroup' ] # stub config files and bind locations