Red Hat Bugzilla – Bug 1260980
Add possibility to passthrough devices from config
Last modified: 2016-06-26 19:51:02 EDT
Description of problem:
I want to allow the processes inside the chroot to access some of the devices that are available out of the chroot, right now there's no easy way to allow that aside from mounting the whole /dev and setting it as unmanaged (bad idea) or manually populating it yourself.
Having a config option like 'passthrough_devices' where you specify a list of devices would be really helpful.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
One possibility is to create hard links for the devices, but that requires the chroot dev and the system dev to be in the same device (maybe creating a temp dir inside the system /dev and mounting it in the chroot?)
While it is probably doable with current chroot, we are in transition to handle the chroot isolation to systemd-nspawn (can be used with --new-chroot option now). And with systemd-nspawn the passthrough of devices is not possible. See:
Thanks for the update :/
We are intensively and extensively using mock for our projects, that change to systemd-nspawn might break some things, what is the roadmap?