path: root/autoscripts/postrm-modules
diff options
authorjoeyh <joeyh>2006-06-09 21:20:31 +0000
committerjoeyh <joeyh>2006-06-09 21:20:31 +0000
commit3ccdc50eabcdcea497fec06c481bce39f8fa32b4 (patch)
tree501c209bf6584dff95e1cbe14b5e223deb272000 /autoscripts/postrm-modules
parentb3f5766834900b632d9cf180df212124f1a8351f (diff)
r1929: * dh_installmodules: depmod -a is no longer run during boot, so if a module
package is installed for a kernel other than the running kernel, just running depmod -a in the postinst is no longer sufficient. Instead, run depmod -a -F /boot/<kvers> <kvers> The kernel version is guessed at based on the path to the modules in the package. Closes: #301424 * Note: behavior change due to the above: The mere existence of a debian/package.modules file will no longer make dh_installmodules add code to maintainer scripts. * Untested.
Diffstat (limited to 'autoscripts/postrm-modules')
1 files changed, 3 insertions, 1 deletions
diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules
index bcacb9f..d710791 100644
--- a/autoscripts/postrm-modules
+++ b/autoscripts/postrm-modules
@@ -1,4 +1,6 @@
if [ -x "`which update-modules 2>/dev/null`" ]; then
update-modules >/dev/null || [ "$?" = 3 ]
-depmod -a || true
+if [ -e /boot/ ]; then
+ depmod -a -F /boot/ #KVERS# || true