From 37f347887340934837a2bcb886b67aed4c7ba882 Mon Sep 17 00:00:00 2001 From: Wang He Date: Sun, 18 Sep 2016 12:06:07 +0200 Subject: [PATCH] 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 Signed-off-by: Joachim Nilsson --- finit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/finit.c b/finit.c index b315e53a..e1388a95 100644 --- a/finit.c +++ b/finit.c @@ -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