I'll just drop the part about the -Q then, rather than file a new bug
about the other parts, especially since I already have it linked to the
debian bug about the rest.

Still the rules trying to match multipath and dmraid and run kpartx are
broken.  The one for dmraid should not be there at all, and the one for
kpartx I bet also has the wrong case, and as I mentioned in bug #712840,
should not be using -p anyhow.

** This bug is no longer a duplicate of bug 644481
   95-kpartx.rules uses invalid -Q argument to modprobe(8)

** Changed in: multipath-tools (Ubuntu)
       Status: Incomplete => New

** Description changed:

  Binary package hint: multipath-tools
  
- The kpartx udev rule runs "modprobe -Qba dm-multipath" every time a
- device mapper device is added or changed.  Not only is this a waste of
- resources, but it fails because modprobe has no -Q switch.
- 
- It also has this rule:
- 
+ The kpartx udev rule looks like this:
  
  ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="dmraid-*", \
-         RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
+         RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
  
  This kpartx command should not be run because dmraid already creates the
  partition device, but it isn't run anyhow because the rule matches on
  "dmraid-*" but dmraid devices have an id of the form "DMRAID-*".  Note
  the difference in case.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/737027

Title:
  kpartx udev rule is broken

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to