From 516e23ca257fb28e745e409cb73ffed30c61e6f9 Mon Sep 17 00:00:00 2001 From: Jan Tatje Date: Fri, 2 Sep 2016 02:21:21 +0200 Subject: Do not try to load modules if kernel doesn't support modules. --- core-services/02-kmods.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core-services') 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' -- cgit 1.4.1