Run udev triggers to add subsystems and devices

Without trigger, kernel modules won't be loaded automatically.  Also
devices are not managed.  For example, i915 was not loaded after boot
and my network card was not renamed from wlan0 to wlp3s0, which means
it was not handled properly by udev.

Signed-off-by: Wang He <xw897002528@gmail.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Wang He
2016-09-18 12:06:12 +02:00
committed by Joachim Nilsson
parent a64259362e
commit 37f3478873
+5
View File
@@ -325,7 +325,12 @@ int main(int argc, char* argv[])
else
devfsd = "/lib/systemd/systemd-udevd --daemon";
}
run_interactive(devfsd, "Populating device tree");
if (fexist("/sbin/udevadm")) {
run_interactive("/sbin/udevadm trigger --action=add --type=subsystems", "Trigger subsystems");
run_interactive("/sbin/udevadm trigger --action=add --type=devices", "Trigger devices");
}
/*
* Load plugins first, finit.conf may contain references to