-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I have an issue about systemd-nspawn containers and --placement on-host. It seems like systemd-nspawn cannot bind mount with dev option a path within a nodev /run
Firstly, I was not using --placement on-host and it worked fine, but I want to use nspawn with --private-users=pick and I got permission issues of devices created on /dev/input. seatd rejects inputs with messed ownership even though it has read permission (libinput debug-events works very well, but sway cannot enumerate any device because seatd doesn't want to).
I tried many ways of mounting /dev/input with dev, but I cannot afford to do it while using idmap mounts (to fix ownership). I found out a way that simply mounts a tmpfs on /run/.../dev-input with dev option and here systemd-nspawn copies those options in container, and I can have access to input devices on container.
mkdir -p /run/vuinputd/vuinput/dev-input
mount -t tmpfs -o rw,dev tmpfs /run/vuinputd/vuinput/dev-inputand the passing Bind in nspawn I could get a valid /dev/input inside container.