openSUSE / microos-toolbox

Script to run a toolbox container on openSUSE MicroOS
Apache License 2.0
54 stars 15 forks source link

fix entering a toolbox if something changed in /dev since creation #4

Closed dfaggioli closed 4 years ago

dfaggioli commented 4 years ago

As described by this libpod issue:

https://github.com/containers/libpod/issues/4900

a rootless privileged container refuses to start if anything has changed in the host device layout since the container creation.

Using '-v /dev:/dev:rslave' helps, but then we run into this other issue (about tty permissions):

https://github.com/containers/crun/issues/150

Fix that too by slightly changing container creation.

Using 'sleep +Inf' comes from Fedora Silverblue toolbox.

This was described in our issue: https://github.com/kubic-project/microos-toolbox/issues/3

Signed-off-by: Dario Faggioli dfaggioli@suse.com