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:
parent
5595cc065f
commit
3de605aec6
4
toolbox
4
toolbox
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue