From f375d30639e7052b35850ed31ca36827df97e582 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Tue, 10 Jan 2012 22:52:13 -0300 Subject: Keep modules.devname needed for on-demand module loading Otherwise we need to modprobe module manually. (Particulary I need this for archiso for using /dev/loop-control) Signed-off-by: Gerardo Exequiel Pozzi --- mkinitcpio | 4 ++-- 1 file 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." -- cgit v1.2.3-24-g4f1b