summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-01-11 02:52:13 +0100
committerDave Reisner <dreisner@archlinux.org>2012-01-11 03:20:45 +0100
commitf375d30639e7052b35850ed31ca36827df97e582 (patch)
treed53244d3b17478e970104f1d27645e855554b06b
parent03deaed9f3f5b0c0537eb65e8f1862f53bc21fec (diff)
downloadmkinitcpio-f375d30639e7052b35850ed31ca36827df97e582.tar.gz
mkinitcpio-f375d30639e7052b35850ed31ca36827df97e582.tar.xz
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 <vmlinuz386@yahoo.com.ar>
-rwxr-xr-xmkinitcpio4
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."