Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581182 - sys-fs/multipath-tools-0.5.0-r1: udev rules are broken
Summary: sys-fs/multipath-tools-0.5.0-r1: udev rules are broken
Status: RESOLVED DUPLICATE of bug 308693
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 15:44 UTC by pva
Modified: 2016-04-26 07:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
66-kpartx.rules.rhel (66-kpartx.rules.rhel,963 bytes, text/plain)
2016-04-25 15:45 UTC, pva
Details
dmsetup_env (dmsetup_env,833 bytes, application/x-shellscript)
2016-04-25 15:45 UTC, pva
Details
0011-patch-udev-rule.patch (0011-patch-udev-rule.patch,688 bytes, patch)
2016-04-25 15:46 UTC, pva
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pva 2016-04-25 15:44:06 UTC
udev rules (/lib/udev/rules.d/66-kpartx.rules) in multipath package are expected to call kpartx and create partitions for multipass devices. Yet default rules are not working at all. They contain

ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"

Since DM_TABLE_STATE is never defined thus control goes to kpartx_end and kpartx binary never called and partitions not created. This was very well documented long time ago in this thread:
https://www.redhat.com/archives/dm-devel/2007-July/msg00095.html

I've opened new thread:
https://www.redhat.com/archives/dm-devel/2016-April/msg00349.html
and confirmed that nothing changed since then.

To fix, easiest solution I found was to take udev rules from RHEL (66-kpartx.rules.rhel). Yet, since I've investigated Debian and they use different approach: they provide ./dmsetup_env shell script and patch udev rule to call this script and populate environment with required variables. If necessary I can test Debian way as well.
Comment 1 pva 2016-04-25 15:45:01 UTC
Created attachment 431968 [details]
66-kpartx.rules.rhel
Comment 2 pva 2016-04-25 15:45:34 UTC
Created attachment 431970 [details]
dmsetup_env
Comment 3 pva 2016-04-25 15:46:17 UTC
Created attachment 431972 [details, diff]
0011-patch-udev-rule.patch
Comment 4 pva 2016-04-25 15:49:12 UTC
So I'd like your decision what way to go and I'll create complete patch for ebuild/package to make it workable. Also note last message from Hannes Reineck in the recent thread on dm-devel mailing list. It looks like some upstream solution gonna happen.
Comment 5 pva 2016-04-26 07:20:23 UTC

*** This bug has been marked as a duplicate of bug 308693 ***