summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 7ce1401..c2565f5 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -263,10 +263,10 @@ done
if [ "${HAS_MODULES}" = "y" ]; then
echo ":: Generating module dependencies"
+ # unfortuate name collision between a function and utility program
+ unset install
for mod in $(grep "file /lib/modules/${KERNELVERSION}" ${FILELIST} | cut -d' ' -f2); do
- dir=$(get_dirname "${mod}")
- mkdir -p "${TMPDIR}/${dir}"
- cp "${BASEDIR}${mod}" "${TMPDIR}/${dir}/"
+ install -m 644 -D "${BASEDIR}${mod}" "${TMPDIR}${mod}"
done
/sbin/depmod -b ${TMPDIR} ${KERNELVERSION}
add_file "${TMPDIR}/lib/modules/${KERNELVERSION}/modules.dep" "/lib/modules/${KERNELVERSION}/modules.dep"