about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsuigin <suigin@national.shitposting.agency>2016-09-20 08:36:44 -0700
committersuigin <suigin@national.shitposting.agency>2016-09-20 08:36:44 -0700
commit6afe11f7adb479dea3de45ea33da3deaa288ad31 (patch)
treed20547c6b2c0966066a655a7a6d374c5e1dc07d2
parentd8105d33b0676f0d4918589207b7a893279d7b9f (diff)
parenta082284efd1a99cf2191e425a2afd6233103823a (diff)
downloadrunit-void-6afe11f7adb479dea3de45ea33da3deaa288ad31.tar.gz
runit-void-6afe11f7adb479dea3de45ea33da3deaa288ad31.tar.xz
runit-void-6afe11f7adb479dea3de45ea33da3deaa288ad31.zip
Merge branch 'master' of https://github.com/voidlinux/void-runit
-rw-r--r--core-services/02-kmods.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/core-services/02-kmods.sh b/core-services/02-kmods.sh
index 9d904c7..9b4636a 100644
--- a/core-services/02-kmods.sh
+++ b/core-services/02-kmods.sh
@@ -1,6 +1,8 @@
 # vim: set ts=4 sw=4 et:
 
 [ -n "$VIRTUALIZATION" ] && return 0
+# Do not try to load modules if kernel does not support them.
+[ ! -e /proc/modules ] && return 0
 
 msg "Loading kernel modules..."
 modules-load -v | tr '\n' ' ' | sed 's:insmod [^ ]*/::g; s:\.ko\(\.gz\)\? ::g'