dkms calls udevtrigger, should try new udevadm trigger first

Bug #192241 reported by Matt Domsch
2
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: dkms

New udev has a program udevadm, which takes as argument 'trigger'. This should be invoked instead of the older udevtrigger program. Keybuck fixed this for Ubuntu, and I backported that fix onto the upstream package and made it backwards-compatible as well.

commit 9c8add81b7e69ebf156bce1f4e5d47f9b5ff0da9
Author: Matt Domsch <email address hidden>
Date: Fri Feb 15 09:26:42 2008 -0600

    call udevadm trigger instead of udevtrigger for newer udev

diff --git a/dkms b/dkms
index c9b07c7..53f34d9 100755
--- a/dkms
+++ b/dkms
@@ -1248,7 +1248,9 @@ function install_module()
     fi

     # Notify udev if we installed something for the currently running kernel
- if [ -x /sbin/udevtrigger -a "${kernelver_array[0]}" == "$(uname -r)" -a "${arch_array[0]}" == "$(uname -m)" ]; then
+ if [ -x /sbin/udevadm -a "${kernelver_array[0]}" == "$(uname -r)" -a "${arch_array[0]}" == "$(uname -m)" ]; then
+ /sbin/udevadm trigger
+ elif [ -x /sbin/udevtrigger -a "${kernelver_array[0]}" == "$(uname -r)" -a "${arch_array[0]}" == "$(uname -m)" ]; then
        /sbin/udevtrigger
     fi

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dkms - 2.0.17.6-0ubuntu1

---------------
dkms (2.0.17.6-0ubuntu1) hardy; urgency=low

  [ Matt Domsch ]
  * Correct kernel uninstall trigger (LP: #192240)
  * Call udevadm trigger if present, fall back to udevtrigger (LP: #192241)
  * Fix uninstallation with weak modules (Red Hat BZ#429410)
  * debian/control:
    - Update standards version to 3.7.3
    - Add Vcs-git repository.

 -- Mario Limonciello <email address hidden> Mon, 18 Feb 2008 09:40:18 -0600

Changed in dkms:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.