[systemd-devel] Question about a udev rule

Kay Sievers kay at vrfy.org
Mon Dec 9 05:56:55 PST 2013


On Mon, Dec 9, 2013 at 8:08 AM, Hannes Reinecke <hare at suse.de> wrote:
> On 12/08/2013 07:14 PM, Robert Milasan wrote:

> 1) udev rules deal with single events only. So all information for
> the current event is directly available (set in environment
> variables etc), and there is no need to call 'udevadm info'

That's right. --device-id-of-file= though, is just a "smarter" stat,
and does not look at udev's data.

> 2) For cross-event mechanisms (ie if you need to synchronize
> between several events) you should be using appropriate
> mechanisms like collect.
>
> And the 'root' symlink is generated directly by dracut; maybe you
> should look there ...

/dev/root is dead in userspace, also in dracut, it will not come back.
:) Just port the tools to the present, and do not require it, btrfs
can never have /dev/root anyway.

Kay


More information about the systemd-devel mailing list