depmod runs multiple times for running kernel, instead of installed kernel versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
module-init-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: module-init-tools
Upgrading module-init-tools 3.7~pre7-3 within a jaunty chroot on a hardy system failed.
Running /var/lib/
Running depmod for 2.6.28-8-generic...
WARNING: Couldn't open directory /lib/modules/
FATAL: Could not open /lib/modules/
Running depmod for 2.6.28-9-generic...
WARNING: Couldn't open directory /lib/modules/
FATAL: Could not open /lib/modules/
So depmod is running multiple times for the running hardy kernel, instead of the installed jaunty kernel versions.
Changing module-
- /sbin/depmod -a -F "/boot/
+ /sbin/depmod -a -F "/boot/
solves the problem and cleanly runs depmod for the installed kernel versions:
Running depmod for 2.6.28-8-generic...
Running depmod for 2.6.28-9-generic...
as seems to be intended.
Doing an upgrade in a chroot may seem exceptional, but I think the same issue will happen on a normal jaunty system with multiple kernel versions installed. It will just not throw the errors and fail, but will effectively only run depmod for the running kernel.
This bug was fixed in the package module-init-tools - 3.7~pre7-5
---------------
module-init-tools (3.7~pre7-5) jaunty; urgency=low
* debian/ module- init-tools. postinst: Correct call to depmod to include
kernel version. LP: #341955.
-- Scott James Remnant <email address hidden> Fri, 13 Mar 2009 12:04:33 +0000