diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2012-01-11 02:52:13 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-01-11 03:20:45 +0100 |
commit | f375d30639e7052b35850ed31ca36827df97e582 (patch) | |
tree | d53244d3b17478e970104f1d27645e855554b06b | |
parent | 03deaed9f3f5b0c0537eb65e8f1862f53bc21fec (diff) | |
download | mkinitcpio-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-x | mkinitcpio | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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." |