summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index c20a1b6..5579bba 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -345,6 +345,8 @@ if (( ${#ADDED_MODULES[*]} )); then
msg "Generating module dependencies"
/sbin/depmod -b "$BUILDROOT" "${KERNELVERSION}"
rm "$BUILDROOT/lib/modules/$KERNELVERSION"/modules.!(dep.bin|alias.bin|symbols.bin)
+else
+ warning "No modules were added to the image. This is probably not what you want."
fi
declare -i status=0