On Sat, 24.05.14 15:19, Richard Weinberger ([email protected]) wrote:

> Hi!
> 
> As of my understanding of systemd, device units depend hard udev.
> Units like [email protected] contain lines like 
> "BindsTo=sys-subsystem-net-devices-%i.device"
> Within a Linux container this is a problem because there is no udev.
> There systemd never receives an event for this device and the device unit 
> never shows up.
> 
> I'm wondering what we can do to improve the situation.
> At least for Ethernet devices systemd could just use sysfs to find out
> whether the device is present or not.

We were considering doing something like that, but ultimately the
network managing software anyway needs to know that it runs in a
container and not rely on udev properties and suchlike if so. But if it
needs that then thee's no point in faking device availabality in the
containers.

systemd-networkd gets this right, please talk to the authors of your
network managing software to follow the same scheme (or, alternatively,
just use systemd-networkd...)

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to