[systemd-devel] Systemd and network devices under LXC?

Kay Sievers kay at vrfy.org
Thu Jan 24 05:11:02 PST 2013


On Thu, Jan 24, 2013 at 1:58 PM, Lars Kellogg-Stedman <lars at oddbit.com> wrote:
>>> It is possible to
>>> synthesize these dependencies so that it is not necessary to modify
>>> distribution-maintained files?
>>
>> What do you mean?
>
> So, I have existing distribution scripts that include BindTo
> directives as described earlier.  If systemd-udevd is not generating
> the correct notifications -- causing these dependencies to fail and
> services not to start -- is it possible to either (a) make
> systemd-udevd generate the correct information all by itself, or (b)
> through simple scripts to generate "fake" information that will make
> systemd believe that the subsystem-net-devices-eth0.device dependency
> has been met?  I do not want to modify the distribution-maintained
> unit files because these changes would probably get tromped on by a
> subsequent package update.  I could override the unit files in /etc, I
> guess, but I *want* the device dependency there (because what if I
> boot an environment where, for example, eth0 is not available)?

Yeah, not sure how far you'll get with that. Generally, device
information cannot be faked.

If udev runs in the container, maybe it should just made working.

What does:
  udevadm test /sys/class/net/eth0
say about TAGS=:systemd and such ...

Kay


More information about the systemd-devel mailing list