From b9d5ecdfa8e362c9c3d6f3b1addd3ec9e3fc97e3 Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Tue, 4 Feb 2025 10:22:13 +0100 Subject: [PATCH] CI: enable unprivileged user namespaces Ubuntu 24.04 and above require this to let bitbake run no-network. Fixes the following error: 08:48:44.286 [Debug] ERROR: User namespaces are not usable by BitBake, possibly due to AppArmor. See https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions for more information. --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 09a78357..9305c060 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,9 @@ jobs: node-version: 20 steps: + - name: Enable unprivileged user namespaces + run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns + - name: Checkout Repository uses: actions/checkout@v4