Give access to /var/mnt from the host operating system

On Silverblue, /mnt is a symbolic link to /var/mnt. Matching the
presence of /var/mnt on the host inside the toolbox container would
make things less confusing for users.

https://github.com/containers/toolbox/issues/92
This commit is contained in:
Debarshi Ray 2019-11-22 18:11:26 +01:00
parent 5595cc065f
commit 3de605aec6
1 changed files with 4 additions and 0 deletions

View File

@ -1227,6 +1227,10 @@ init_container()
if ! mount_bind /run/host/var/log/journal /var/log/journal ro; then if ! mount_bind /run/host/var/log/journal /var/log/journal ro; then
return 1 return 1
fi fi
if ! mount_bind /run/host/var/mnt /var/mnt rslave; then
return 1
fi
fi fi
if [ -d /run/host/monitor ] 2>&3; then if [ -d /run/host/monitor ] 2>&3; then