Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278304 - lvm2/lvm2-2.02.48-r1: udev rules use no longer existing /sbin/vol_id
Summary: lvm2/lvm2-2.02.48-r1: udev rules use no longer existing /sbin/vol_id
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 278302
  Show dependency tree
 
Reported: 2009-07-19 09:26 UTC by Matthias Schwarzott
Modified: 2009-07-28 20:28 UTC (History)
3 users (show)

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


Attachments
udev device mapper rules file using blkid instead of vol_id (64-device-mapper.rules,1008 bytes, text/plain)
2009-07-27 16:37 UTC, John W Eckhart
Details
updated udev rules (64-device-mapper.rules-1.02.49-r2,1.08 KB, text/plain)
2009-07-27 19:45 UTC, Matthias Schwarzott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2009-07-19 09:26:52 UTC
The udev rules of lvm2/lvm2-2.02.48-r1 do use no longer existing /sbin/vol_id. As of udev-145 one needs to switch over to /sbin/blkid provided by util-linux-2.16.

How should this change by made?
Should the rule be changed and a block against older udev added? Or should the rule file be installed by sys-fs/udev itself?
Comment 1 Jose daLuz 2009-07-25 16:41:30 UTC
This explains an issue I was having: my root filesystem is on lvm2. The last initrd I built for vanilla-sources 2.26.30 used lvm2-2.02.45-r2 and that worked. When I just tried building 2.26.30.3 with an initrd using lvm2-2.02.49 it couldn't find the volume group. Downgrading lvm2 to 2.02.45-r2 fixed this issue.
Comment 2 Matthias Schwarzott gentoo-dev 2009-07-25 18:54:29 UTC
(In reply to comment #1)
> This explains an issue I was having: my root filesystem is on lvm2. The last
> initrd I built for vanilla-sources 2.26.30 used lvm2-2.02.45-r2 and that
> worked. When I just tried building 2.26.30.3 with an initrd using lvm2-2.02.49
> it couldn't find the volume group. Downgrading lvm2 to 2.02.45-r2 fixed this
> issue.
> 
This Bug is about stuff not yet in ~arch. This bug happens when using udev-142 or newer, and only lead to missing links under /dev/disk/.

You most likely you found Bug #276753.
There genkernel falls back to using an old lvm2 version that is not compatible to kernel 2.6.30.
Comment 3 Jose daLuz 2009-07-25 19:23:59 UTC
(In reply to comment #2)
> You most likely you found Bug #276753.
> There genkernel falls back to using an old lvm2 version that is not compatible
> to kernel 2.6.30.

Indeed. Thanks for the link. 

Comment 4 John W Eckhart 2009-07-27 16:37:16 UTC
Created attachment 199356 [details]
udev device mapper rules file using blkid instead of vol_id
Comment 5 Matthias Schwarzott gentoo-dev 2009-07-27 19:45:53 UTC
Created attachment 199380 [details]
updated udev rules

Updated the rules to match upstream rules more (as far as possible).
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-07-27 20:41:31 UTC
Ok, now one question. What's the EARLIEST version of blkid that provides "-o udev"?
Comment 7 Matthias Schwarzott gentoo-dev 2009-07-28 08:04:52 UTC
The earliest version of blkid supporting -o udev, is provided by sys-apps/util-linux-2.16 in our tree.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-07-28 20:28:00 UTC
InCVS.