summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 9a74a8b..4fb48e4 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -400,7 +400,7 @@ if (( ${#ADDED_MODULES[*]} )); then
msg "Generating module dependencies"
install -m644 -t "$BUILDROOT/usr/lib/modules/$KERNELVERSION" \
- "/lib/modules/$KERNELVERSION"/modules.{builtin,order}
+ "$MODULEDIR"/modules.{builtin,order}
depmod -b "$BUILDROOT" "$KERNELVERSION"
# remove all non-binary module.* files (except devname for on-demand module loading)