Skip to content

Commit

Permalink
podvm-ci: un-restrict user ns on ubuntu 24.04
Browse files Browse the repository at this point in the history
There is a restriction introduced in new revisions of ubuntu runners.
This change allows user ns to be created, so mkosi can be built
rootless.

Signed-off-by: Magnus Kulke <[email protected]>
  • Loading branch information
mkulke authored and wainersm committed Dec 11, 2024
1 parent 2435e0e commit b79b771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/podvm_mkosi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ jobs:
qcow2_oras_image: ${{ steps.publish_oras_qcow2.outputs.image }}:${{ steps.publish_oras_qcow2.outputs.tag }}
docker_oci_image: ${{ steps.build_docker_oci.outputs.image }}
steps:
# Required by rootless mkosi
- name: Un-restrict user namespaces
if: inputs.arch == 'amd64'
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: Checkout
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit b79b771

Please sign in to comment.