[arch-projects] [PATCH] [mkinitcpio] Keep modules.devname needed for on-demand module loading
Dave Reisner
d at falconindy.com
Tue Jan 10 21:21:18 EST 2012
On Tue, Jan 10, 2012 at 10:52:13PM -0300, Gerardo Exequiel Pozzi wrote:
> Otherwise we need to modprobe module manually.
> (Particulary I need this for archiso for using /dev/loop-control)
>
> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
> ---
> mkinitcpio | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mkinitcpio b/mkinitcpio
> index a1ea51a..54b39d9 100755
> --- a/mkinitcpio
> +++ b/mkinitcpio
> @@ -357,8 +357,8 @@ if (( ${#ADDED_MODULES[*]} )); then
> "$BASEDIR/lib/modules/$KERNELVERSION"/modules.{builtin,order}
> depmod -b "$BUILDROOT" "${KERNELVERSION}"
>
> - # remove all non-binary module.* files
> - rm "$BUILDROOT/lib/modules/$KERNELVERSION"/modules.!(*.bin)
> + # remove all non-binary module.* files (except devname for on-demand module loading)
> + rm "$BUILDROOT/lib/modules/$KERNELVERSION"/modules.!(*.bin|devname)
>
> else
> warning "No modules were added to the image. This is probably not what you want."
> --
> 1.7.8.1
>
Thanks. Dragged into my local tree.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20120110/959bed72/attachment.asc>
More information about the arch-projects
mailing list