app_containers: Bind the entire /dev/dri subdirectory

This commit is contained in:
Peter Cai 2022-12-25 19:00:48 -05:00
parent 79aeb5321f
commit 529f6e358c
1 changed files with 3 additions and 2 deletions

View File

@ -47,9 +47,10 @@ SUDO_ASKPASS=$HOME/.local/bin/askpass-bemenu sudo -A systemd-nspawn -M $CONTAINE
`# DNS (when containers do not have their own netns)` \
--bind-ro=/run/systemd/resolve/stub-resolv.conf:/etc/resolv.conf \
`# GPU` \
--bind=/dev/dri/card0 \
--bind=/dev/dri \
--bind=/dev/shm \
--property=DeviceAllow='char-drm rw' \
--property=DeviceAllow='/dev/dri rw' \
--property=DeviceAllow='/dev/shm rw' \
`# Input devices` \
--bind-ro=/dev/input \
--property=DeviceAllow='char-input r' \