The reason this happens is that by default 'mnt' is the directory used as pivotdir, where the old_root is placed during pivot_root(). After that, everything under pivotdir is unmounted.
A workaround is to specify an alternate 'lxc.pivotdir' in the container configuration file.
The code should be changed to use a tempdir as pivotroot. However, that can wait for Q and an SRU, since there is a workaround
The reason this happens is that by default 'mnt' is the directory used as pivotdir, where the old_root is placed during pivot_root(). After that, everything under pivotdir is unmounted.
A workaround is to specify an alternate 'lxc.pivotdir' in the container configuration file.
The code should be changed to use a tempdir as pivotroot. However, that can wait for Q and an SRU, since there is a workaround