about summary refs log tree commit diff
path: root/core-services
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-04-24 08:23:07 +0200
committerJuan RP <xtraeme@voidlinux.eu>2015-04-24 08:23:07 +0200
commit2ba8f93b1c87f179a362537a1da39ba2b2140d79 (patch)
treec38c8558e987f7cce9e0803b404f0ab88fb1d8a6 /core-services
parent651be8896621afce6991f3fc8114d3e274762c1a (diff)
downloadrunit-void-2ba8f93b1c87f179a362537a1da39ba2b2140d79.tar.gz
runit-void-2ba8f93b1c87f179a362537a1da39ba2b2140d79.tar.xz
runit-void-2ba8f93b1c87f179a362537a1da39ba2b2140d79.zip
core-services: load kernel modules that aren't autoloaded by eudev3 anymore. 20150424
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).
Diffstat (limited to 'core-services')
-rw-r--r--core-services/01-static-devnodes.sh6
1 files changed, 6 insertions, 0 deletions
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