Bug #397947: Run depmod on new modules to avoid need to run at every boot on unionfs...
authorRobin H. Johnson <robbat2@gentoo.org>
Sat, 13 Oct 2012 21:28:46 +0000 (21:28 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Sat, 13 Oct 2012 21:28:46 +0000 (21:28 +0000)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
ChangeLog
gen_compile.sh

index 2e142c6710ad9c90d196346308862b97566a1a4b..d3e7158e0b3bb71d40b85c709fa2e2586d23c42e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
 # Distributed under the GPL v2
 # $Id$
 
 # Distributed under the GPL v2
 # $Id$
 
+  13 Oct 2012; Robin H. Johnson <robbat2@gentoo.org> gen_compile.sh:
+  Bug #397947: Run depmod on new modules to avoid need to run at every boot on
+  unionfs systems, or systemd that never runs it.
+
   13 Oct 2012; Robin H. Johnson <robbat2@gentoo.org> gen_initramfs.sh:
   Put the version of genkernel used in a build into /etc/build_id.
 
   13 Oct 2012; Robin H. Johnson <robbat2@gentoo.org> gen_initramfs.sh:
   Put the version of genkernel used in a build into /etc/build_id.
 
index cbd3432fffa38f9e3cb31ffb1ed5d2ac8ee6e233..c92396717cd2599e2f8c2163b8b6e8172c9f4026 100755 (executable)
@@ -297,6 +297,8 @@ compile_modules() {
        export UNAME_MACHINE="${ARCH}"
        [ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH
        MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel
        export UNAME_MACHINE="${ARCH}"
        [ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH
        MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel
+       print_info 1 "        >> Generating module dependency data..."
+       depmod -a -e -b "${INSTALL_MOD_PATH}"/lib/modules/$KV ${KV}
        unset UNAME_MACHINE
 }
 
        unset UNAME_MACHINE
 }