Skip to content

Commit

Permalink
Merge pull request #2320 from AkihiroSuda/fix-2319
Browse files Browse the repository at this point in the history
apptainer: fix AppArmor incompatibility with Ubuntu 24.04
  • Loading branch information
AkihiroSuda committed May 5, 2024
2 parents 710e7ed + 3f005da commit 75d776e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/apptainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ provision:
#!/bin/bash
set -eux -o pipefail
command -v apptainer >/dev/null 2>&1 && exit 0
# Workaround for https://github.com/apptainer/apptainer/issues/2027
echo "kernel.apparmor_restrict_unprivileged_userns = 0" >/etc/sysctl.d/99-userns.conf
sysctl --system
# add the "Official PPA for Apptainer"
add-apt-repository -y ppa:apptainer/ppa
apt-get update
Expand Down

0 comments on commit 75d776e

Please sign in to comment.