aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-10-13 21:28:46 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-10-13 21:28:46 +0000
commit63b9e57491e3ac40428885ec5f761fe9bde5e3b2 (patch)
tree7af479a362e13d222debb364e8294d4a3ea872a6
parentMissing Changelog entry. (diff)
downloadgenkernel-63b9e57491e3ac40428885ec5f761fe9bde5e3b2.tar.gz
genkernel-63b9e57491e3ac40428885ec5f761fe9bde5e3b2.tar.bz2
genkernel-63b9e57491e3ac40428885ec5f761fe9bde5e3b2.zip
Bug #397947: Run depmod on new modules to avoid need to run at every boot on unionfs systems, or systemd that never runs it.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--ChangeLog4
-rwxr-xr-xgen_compile.sh2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e142c6..d3e7158 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
# 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.
diff --git a/gen_compile.sh b/gen_compile.sh
index cbd3432..c923967 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -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
+ print_info 1 " >> Generating module dependency data..."
+ depmod -a -e -b "${INSTALL_MOD_PATH}"/lib/modules/$KV ${KV}
unset UNAME_MACHINE
}