Skip to content

Commit 22b4887

Browse files
committed
For apptainer, move TMPDIR away from tmpfs
It has some issues with it being mounted as "nodev", so revert to using a normal file system for $TMPDIR. Signed-off-by: Anders F Björklund <[email protected]>
1 parent d7193af commit 22b4887

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/apptainer-rootful.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ provision:
3131
set -eux -o pipefail
3232
command -v apptainer >/dev/null 2>&1 && exit 0
3333
dnf -y install apptainer apptainer-suid
34+
# See https://fedoraproject.org/wiki/Features/tmp-on-tmpfs
35+
echo "APPTAINER_TMPDIR=/var/tmp" > /etc/profile.d/apptainer.sh
36+
echo "export APPTAINER_TMPDIR" >> /etc/profile.d/apptainer.sh
3437
probes:
3538
- script: |
3639
#!/bin/bash

examples/apptainer.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ provision:
2525
set -eux -o pipefail
2626
command -v apptainer >/dev/null 2>&1 && exit 0
2727
dnf -y install apptainer
28+
# See https://fedoraproject.org/wiki/Features/tmp-on-tmpfs
29+
echo "APPTAINER_TMPDIR=/var/tmp" > /etc/profile.d/apptainer.sh
30+
echo "export APPTAINER_TMPDIR" >> /etc/profile.d/apptainer.sh
2831
probes:
2932
- script: |
3033
#!/bin/bash

0 commit comments

Comments
 (0)