about summary refs log tree commit diff
path: root/core-services/02-kmods.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core-services/02-kmods.sh')
-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'