[arch-projects] [mkinitcpio] [PATCH 4/4] mkinitcpio: use a loop to place depmod files

Thomas Bächler thomas at archlinux.org
Sat Jun 4 03:28:03 EDT 2011


Am 03.06.2011 20:13, schrieb Dave Reisner:
> Signed-off-by: Dave Reisner <d at falconindy.com>
> ---
>  mkinitcpio |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/mkinitcpio b/mkinitcpio
> index 0ebf7c9..d6f3f04 100755
> --- a/mkinitcpio
> +++ b/mkinitcpio
> @@ -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}; do
> +        add_file "${TMPDIR}/lib/modules/${KERNELVERSION}/$dmfile" "/lib/modules/${KERNELVERSION}/$dmfile"
> +    done
>  fi
>  
>  status=0

Wow, we haven't touched this code in years. This is incomplete, we need
the .bin files from depmod, which speed up modprobe operation in
initramfs considerably.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20110604/54e9d465/attachment-0001.asc>


More information about the arch-projects mailing list