DKMS 2.0.17.4 uninstalls wrong file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
DKMS 2.0.17.4 and earlier has a bug whereby when running 'dkms uninstall', it will not delete the module previously installed into /lib/modules/
In addition, DKMS 2.0.17.5 invokes depmod after uninstalling a module so stale data is not retained, and invokes udevtrigger after installing a module for the currently-running kernel in case that module now enables a new device which udev should be aware of.
DKMS 2.0.17.5 is available in REVU at http://
$ diffstat /tmp/dkms.patch
Makefile | 4 ++--
dkms | 14 +++++++++++---
dkms_autoinstaller | 2 ++
pkg/debian/
4 files changed, 23 insertions, 5 deletions
Package builds, installs, upgrades correctly. Affected code paths tested. Does not break other packages (none presently in Universe depend on it).
debdiff:
File lists identical (after any substitutions)
Control files: lines which differ (wdiff format)
-------
Version: [-2.0.17.
The relevant changes are:
diff --git a/dkms b/dkms
index 13dbc54..c9b07c7 100755
--- a/dkms
+++ b/dkms
@@ -1247,6 +1247,11 @@ function install_module()
fi
fi
+ # Notify udev if we installed something for the currently running kernel
+ if [ -x /sbin/udevtrigger -a "${kernelver_
+ /sbin/udevtrigger
+ fi
+
echo $""
echo $"DKMS: install Completed."
}
@@ -1451,9 +1456,9 @@ function possible_
# override_
local location
- location[
- [ "${location[0]}" != "${dest_
- location[
+ location[
+ [ "${DEST_
+ location[
echo "${location[0]} ${location[1]}"
}
@@ -1581,6 +1586,9 @@ function do_uninstall()
# But only do this if it was just ACTIVE on the kernel we just uninstalled from
[ -n "$was_active" ] && [ -n "$remake_initrd" ] && $0 status -m $module -v $module_version | grep -q "installed" && modu
leconfig_add "$1"
+ # Run depmod because we changed /lib/modules
+ invoke_command "depmod -a ${kernelver_
+
echo $""
echo $"DKMS: uninstall Completed."
}
description: | updated |
Changed in dell: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in dell: | |
status: | Confirmed → Fix Committed |
Changed in dkms: | |
status: | Fix Committed → Fix Released |
Changed in dell: | |
status: | Fix Committed → Fix Released |
Changed in somerville: | |
importance: | Undecided → Medium |
status: | New → Fix Released |
no longer affects: | dell |
Is this something you can provide a patch to the existing version to fix?