我正在执行以下操作:
mkdir /tmp/upper /tmp/work
mount -t overlay overlay -o lowerdir=/,upperdir=/tmp/upper,workdir=/tmp/work /
ls -l /etc/mtab
> lrwxrwxrwx 1 root root 19 27. Feb 09:16 /etc/mtab -> ../proc/self/mounts
cat /etc/mtab
> cat: /etc/mtab: file or directory not found
umount /
ls -l /etc/mtab
lrwxrwxrwx 1 root root 19 27. Feb 09:16 /etc/mtab -> ../proc/self/mounts
cat /etc/mtab
> correctly prints mtab...
我的问题是,为什么会这样?关于overlayfs,我错过了什么?