summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/udev-retry.service13
-rw-r--r--init/udev-settle.service13
-rw-r--r--init/udev.service15
3 files changed, 41 insertions, 0 deletions
diff --git a/init/udev-retry.service b/init/udev-retry.service
new file mode 100644
index 0000000000..07928751a5
--- /dev/null
+++ b/init/udev-retry.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=re-trigger failed events after filesystems are available
+After=local-fs.target
+
+[Service]
+Type=finish
+ValidNoProcess=yes
+ExecStart=/sbin/udevadm trigger --type=failed
+
+[Install]
+WantedBy=sysinit.target
+Also=udev.service
+Also=udev-settle.service
diff --git a/init/udev-settle.service b/init/udev-settle.service
new file mode 100644
index 0000000000..3c73a96d9f
--- /dev/null
+++ b/init/udev-settle.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=wait until full initialization
+After=udev.service
+
+[Service]
+Type=finish
+ValidNoProcess=yes
+ExecStart=/sbin/udevadm settle
+
+[Install]
+WantedBy=sysinit.target
+Also=udev.service
+Also=udev-retry.service
diff --git a/init/udev.service b/init/udev.service
new file mode 100644
index 0000000000..f6824a2002
--- /dev/null
+++ b/init/udev.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=/dev and kernel device manager
+Before=sysinit.target
+
+[Service]
+Type=notify
+ExecStart=/sbin/udevd
+ExecStartPost=/sbin/udevadm trigger --type=subsystems --action=add
+ExecStartPost=/sbin/udevadm trigger --type=devices --action=add
+
+[Install]
+WantedBy=sysinit.target
+Also=udev-settle.service
+Also=udev-retry.service
+