[systemd-devel] kmod-static-nodes.service doesn't care about udev?

Tom Gundersen teg at jklm.no
Fri Jul 12 00:16:29 PDT 2013


On 12 Jul 2013 08:28, "Oleksii Shevchuk" <alxchk at gmail.com> wrote:
>
> Latest innovation with kmod-static-nodes.service introduce next issues
with
>
> 1. default distro paths
> 2. interacting with rest configuration
>
> So, what is the problem.
>
> kmod-static-nodes.service.in:
>
> ExecStartPre=/usr/bin/mkdir -p /run/tmpfiles.d
>
> > /usr/bin/mkdir
> zsh: no such file or directory: /usr/bin/mkdir

Good catch. The standard path is /bin/mkdir, so we should change it to
that, or if any distribution uses something else we could detect at compile
time.

> The next one - kmod doesn't care about udev rules. So, I have something
> like this in udev rules:
> KERNEL=="fuse", MODE="0666"
>
> and in autogenerated with kmod:
> c /dev/fuse 0600 - - - 10:229
>
> The last one has priority. So, either kmod-static-nodes.service should
> be started before udev, or some new logic should be introduces somewhere
> to prevent that destructive behavior.

This should work, but your udev rule must be set up to apply to static
nodes. See how it is done for snd/seq for instance.

Cheers,

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130712/af965760/attachment.html>


More information about the systemd-devel mailing list