[Piuparts-devel] [Git][debian/piuparts][helmutg/feature-nonroot] skip unshare autopkgtest if --mount-proc is unavailable
Nicolas Dandrimont (@olasd)
gitlab at salsa.debian.org
Mon May 20 11:05:00 BST 2024
Nicolas Dandrimont pushed to branch helmutg/feature-nonroot at Debian / piuparts
Commits:
c075ef6d by Nicolas Dandrimont at 2024-05-20T12:03:35+02:00
skip unshare autopkgtest if --mount-proc is unavailable
The salsaci runners are running on docker, which shadows enough parts of
/proc that unshare is unable to remount it in the new namespace. Skip
the test if that's the case.
- - - - -
1 changed file:
- debian/tests/unshare
Changes:
=====================================
debian/tests/unshare
=====================================
@@ -20,7 +20,7 @@ if ! grep -qx "$AUTOPKGTEST_NORMAL_GID:.*" /etc/subgid; then
echo "$AUTOPKGTEST_NORMAL_GID:1000000:65536" >> /etc/subgid
fi
-if ! unshare --user --map-auto --setuid 0 --setgid 0 --mount --pid --fork true; then
+if ! unshare --user --map-auto --setuid 0 --setgid 0 --mount --pid --fork --mount-proc true; then
echo "Unshare failed, bailing"
exit 77
fi
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/c075ef6d98514501130f8d7e49e8945bbf920b06
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/c075ef6d98514501130f8d7e49e8945bbf920b06
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20240520/c4e8498a/attachment-0001.htm>
More information about the Piuparts-devel
mailing list