cmd/initContainer: Give access to the udev database

This prevents devices from losing properties that would otherwise be
set on the host operating system. It's useful when developing software
like PipeWire that uses libudev to enumerate devices.

https://github.com/containers/toolbox/issues/468
This commit is contained in:
Ondřej Míchal 2020-07-07 13:31:05 +02:00 committed by Debarshi Ray
parent c795af57a8
commit be9b7dd07f

View file

@ -53,6 +53,7 @@ var (
{"/etc/machine-id", "/run/host/etc/machine-id", "ro"},
{"/run/libvirt", "/run/host/run/libvirt", ""},
{"/run/systemd/journal", "/run/host/run/systemd/journal", ""},
{"/run/udev/data", "/run/host/run/udev/data", ""},
{"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"},
{"/var/log/journal", "/run/host/var/log/journal", "ro"},
{"/var/mnt", "/run/host/var/mnt", "rslave"},