postinst: depmod needs version info
Bug #239062 reported by
John Simon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virtualbox-ose-modules (Ubuntu) |
Fix Released
|
Medium
|
Daniel Hahler | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
module postinst script need to run depmod to update module.dep: current postinst reads like this:
/sbin/depmod -q || true
but if the user is running different version of the kernel during install, e.g. running 2.6.24-17 when installing 2.6.24-18, depmod creates modules.dep in /lib/modules/
it would be better put version infomation to depmod line, e.g.
/sbin/depmod 2.6.24-18-generic -q || true
tags: |
added: verification-done removed: verification-needed |
To post a comment you must log in.
I am seeing the affect of this, too. In the last 2-3 kernel updates, I have updated the kernel, but the VirtualBox modules lag by a couple of days. Once the VB modules are installed, I reboot to the new kernel. When I try to run VB, it fails because the kernel is not installed. Running "depmod -a" fixes the problem. Somehow, this should be done automatically.