chiark / gitweb /
tmpfiles: create static device nodes before udev is started
authorTom Gundersen <teg@jklm.no>
Thu, 11 Apr 2013 19:14:40 +0000 (21:14 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 12 Apr 2013 00:43:01 +0000 (02:43 +0200)
commit8c11aac1d739f5e60822f65f5179d8c4cc212732
treecaf14eedbd25e7060bdd9fcde57fda6796189a0a
parent4e3431bc39cbd45661f7887229afa50e5aec60dc
tmpfiles: create static device nodes before udev is started

Since v183, the contents of /usr/lib/udev/devices is no longer copied to /dev
on boot, rather systemd-tmpfiles should be used instead. However, as
systemd-tmpfiles --create is only ran long after udevd has been started, it is
no longer possible to use udev rules to assign permissions to the static nodes.

This calls systemd-tmpfiles --create early, before udev is started, and
restricts the call to /dev, which is known to be mounted already.

In the future, this could also take over the creation of static device nodes
from systemd-udevd.
Makefile.am
units/systemd-static-nodes.service.in [new file with mode: 0644]