summaryrefslogtreecommitdiff
path: root/etc/udev/gentoo/05-udev-early.rules
diff options
context:
space:
mode:
Diffstat (limited to 'etc/udev/gentoo/05-udev-early.rules')
-rw-r--r--etc/udev/gentoo/05-udev-early.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/udev/gentoo/05-udev-early.rules b/etc/udev/gentoo/05-udev-early.rules
new file mode 100644
index 0000000000..b4d24ae216
--- /dev/null
+++ b/etc/udev/gentoo/05-udev-early.rules
@@ -0,0 +1,13 @@
+# ignore these events until someone needs them
+SUBSYSTEM=="drivers", OPTIONS="ignore_device"
+SUBSYSTEM=="module", OPTIONS="ignore_device"
+
+# sysfs is populated after the event is sent
+ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
+ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"
+ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
+ACTION=="add", SUBSYSTEM=="net", ENV{PHYSDEVDRIVER}=="?*", WAIT_FOR_SYSFS="device/driver"
+
+# Set IN_HOTPLUG for compatibility with init-scripts called from udev
+ENV{IN_HOTPLUG}="1"
+