[arch-projects] [PATCH] [mkinitcpio] Keep modules.devname needed for on-demand module loading
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Tue Jan 10 20:52:13 EST 2012
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
More information about the arch-projects
mailing list