diff --git a/.semaphore/semaphore-runner.sh b/.semaphore/semaphore-runner.sh index 6b4aedbd09f..8c99b68156a 100755 --- a/.semaphore/semaphore-runner.sh +++ b/.semaphore/semaphore-runner.sh @@ -23,9 +23,19 @@ create_container() { sudo lxc-create -n "$CONTAINER" -t download -- -d "$DISTRO" -r "$RELEASE" -a "$ARCH" # unconfine the container, otherwise some tests fail - echo 'lxc.apparmor.profile = unconfined' | sudo tee -a "/var/lib/lxc/$CONTAINER/config" + # + # disable automatic cgroup setup, instead let pid1 figure it out in mount_setup(). + # This is especially important to ensure we get unified cgroup hierarchy + # + # FIXME: remove cgroup workarounds once the host runs on unified hierarchy + sudo tee "/var/lib/lxc/$CONTAINER/config.systemd_upstream" <