Hi Pádraig,
I don't think bash should be required for this test. Am I missing
something?
$ podman run --rm -it alpine:latest
$ type bash
bash: not found
$ type unshare
unshare is /usr/bin/unshare
Patch attached.
Collin
>From 577f7df2f8c6d1bf54cbddcdf20fba942cdea04f Mon Sep 17 00:00:00 2001
Message-ID: <577f7df2f8c6d1bf54cbddcdf20fba942cdea04f.1767295171.git.collin.fu...@gmail.com>
From: Collin Funk <[email protected]>
Date: Thu, 1 Jan 2026 11:15:31 -0800
Subject: [PATCH] tests: df: don't depend on bash
* tests/df/no-mtab-status-masked-proc.sh: Invoke 'sh' instead of 'bash'.
---
tests/df/no-mtab-status-masked-proc.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/df/no-mtab-status-masked-proc.sh b/tests/df/no-mtab-status-masked-proc.sh
index bf9981e3c..d81f403c2 100755
--- a/tests/df/no-mtab-status-masked-proc.sh
+++ b/tests/df/no-mtab-status-masked-proc.sh
@@ -29,7 +29,7 @@ unshare -rm true || skip_ 'User namespace sandbox is disabled'
# mask /proc
df() {
- unshare -rm bash -c \
+ unshare -rm sh -c \
"mount -t tmpfs tmpfs /proc && command df \"\$@\"" -- "$@";
}
--
2.52.0