summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index c80db8f..766405a 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -362,7 +362,7 @@ write_image_config
trap -- RETURN
trap '(( ++builderrors ))' ERR
-if (( ${#ADDED_MODULES[*]} )); then
+if (( ${#MODPATHS[*]} )); then
printf '%s\0' "${MODPATHS[@]}" | sort -zu |
xargs -0 cp -t "$BUILDROOT/usr/lib/modules/$KERNELVERSION/kernel"