diff options
author | Dave Reisner <d@falconindy.com> | 2011-06-03 19:43:32 +0200 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2011-06-07 20:38:43 +0200 |
commit | 77fdafdb307abaacc994e114ff45ec98b4339d5c (patch) | |
tree | 47f738e918631472bd7e9e2966607118bf83677a | |
parent | 16e6c970bc2a261cb3c890bc92ec41bb393821f5 (diff) | |
download | mkinitcpio-77fdafdb307abaacc994e114ff45ec98b4339d5c.tar.gz mkinitcpio-77fdafdb307abaacc994e114ff45ec98b4339d5c.tar.xz |
mkinitcpio: use binary hashed depmod files
We can condense this logic into a loop as well, which cuts back on
repetative code.
Signed-off-by: Dave Reisner <d@falconindy.com>
-rwxr-xr-x | mkinitcpio | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -275,9 +275,9 @@ if [ "${HAS_MODULES}" = "y" ]; then 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" - add_file "${TMPDIR}/lib/modules/${KERNELVERSION}/modules.alias" "/lib/modules/${KERNELVERSION}/modules.alias" - add_file "${TMPDIR}/lib/modules/${KERNELVERSION}/modules.symbols" "/lib/modules/${KERNELVERSION}/modules.symbols" + for dmfile in modules.{dep,alias,symbols}.bin; do + add_file "${TMPDIR}/lib/modules/${KERNELVERSION}/$dmfile" "/lib/modules/${KERNELVERSION}/$dmfile" + done fi status=0 |