Why mounting overlayfs with root as lowerdir produce an empty /proc in mergedir?
1
vote
1
answer
1617
views
Here's the test case:
#!/bin/bash
more="$@"
saved="$EUID"
if [ "$EUID" = "0" ]; then
echo "don't run as root"
exit
fi
m="/tmp/mount-point"
exec sudo unshare -m /bin/bash </proc, as you can probably guess, is mounted and not empty in the _big fs_.
Asked by rhs
(343 rep)
Feb 11, 2017, 02:04 PM
Last activity: May 24, 2017, 02:33 PM
Last activity: May 24, 2017, 02:33 PM