Skip to content

Commit

Permalink
CI: enable unprivileged user namespaces
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deribaucourt committed Feb 6, 2025
1 parent 5c1d82e commit b9d5ecd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b9d5ecd

Please sign in to comment.