From 2ba8f93b1c87f179a362537a1da39ba2b2140d79 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 24 Apr 2015 08:23:07 +0200 Subject: core-services: load kernel modules that aren't autoloaded by eudev3 anymore. We use the output of `kmod static-nodes` to get a list of modules that should be loaded for the running kernel, just like systemd does via tmpfiles.d(5). --- core-services/01-static-devnodes.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 core-services/01-static-devnodes.sh diff --git a/core-services/01-static-devnodes.sh b/core-services/01-static-devnodes.sh new file mode 100644 index 0000000..b059177 --- /dev/null +++ b/core-services/01-static-devnodes.sh @@ -0,0 +1,6 @@ +# Some kernel modules must be loaded before starting udev(7). +# Load them by looking at the output of `kmod static-nodes`. + +for f in $(kmod static-nodes 2>/dev/null|awk '/Module/ {print $2}'); do + modprobe -q $f 2>/dev/null +done -- cgit 1.4.1