fdtest.sh which is a reduced version of coreos-assembler run:
#!/bin/bash
set -xeuo pipefail
t=$(mktemp)
exec 4<> "${t}"
echo foo > ${t}
rm -f ${t}
ls -al /proc/self/fd
cat /proc/self/fd/4
Running this inside my toolbox (fedora-toolbox wrapping podman) gives me:
cat: /proc/self/fd/4: No such file or directory
If I run this on my host, works fine.
If I do:
env TMPDIR=$(pwd) /srv/walters/tmp/fdtest.sh
it also works.
Something to do with crossing mounts? Hm, no it must be crossing mount namespaces, since I have tmpfs
for /tmp
on my host.