mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 22:21:55 +03:00
8c11aac1d7
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.
17 lines
530 B
SYSTEMD
17 lines
530 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Create static device nodes in /dev
|
|
DefaultDependencies=no
|
|
Before=sysinit.target systemd-udevd.service
|
|
ConditionCapability=CAP_MKNOD
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@rootbindir@/systemd-tmpfiles --prefix=/dev --create
|