Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/lvm2/files: lvm2-2.02.95-lvmpath.patch
Date: Sat, 31 Mar 2012 21:46:11
Message-Id: 20120331214554.414942004C@flycatcher.gentoo.org
1 robbat2 12/03/31 21:45:54
2
3 Added: lvm2-2.02.95-lvmpath.patch
4 Log:
5 Bug #409921: udev upstream rules were buggy, patch from upstream pending next release.
6
7 (Portage version: 2.2.0_alpha93/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-fs/lvm2/files/lvm2-2.02.95-lvmpath.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lvm2/files/lvm2-2.02.95-lvmpath.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lvm2/files/lvm2-2.02.95-lvmpath.patch?rev=1.1&content-type=text/plain
14
15 Index: lvm2-2.02.95-lvmpath.patch
16 ===================================================================
17 http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/udev/69-dm-lvm-metad.rules.diff?r1=1.3&r2=1.4&cvsroot=lvm2
18
19 X-Gentoo-Bug: 409921
20 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=409921
21
22 ===================================================================
23 RCS file: /cvs/lvm2/LVM2/udev/69-dm-lvm-metad.rules,v
24 retrieving revision 1.3
25 retrieving revision 1.4
26 diff -u -r1.3 -r1.4
27 --- LVM2/udev/69-dm-lvm-metad.rules 2012/03/06 02:30:50 1.3
28 +++ LVM2/udev/69-dm-lvm-metad.rules 2012/03/12 08:59:55 1.4
29 @@ -19,7 +19,12 @@
30 # Device-mapper devices are processed only on change event or on supported synthesized event.
31 KERNEL=="dm-[0-9]*", ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="lvm_end"
32
33 +# Set proper sbin path, /sbin has higher priority than /usr/sbin.
34 +ENV{LVM_SBIN_PATH}="/sbin"
35 +TEST!="$env{LVM_SBIN_PATH}/lvm", ENV{LVM_SBIN_PATH}="/usr/sbin"
36 +TEST!="$env{LVM_SBIN_PATH}/lvm", GOTO="lvm_end"
37 +
38 # Only process devices already marked as a PV - this requires blkid to be called before.
39 -ENV{ID_FS_TYPE}=="LVM2_member|LVM1_member", RUN+="$env{DM_SBIN_PATH}/pvscan --cache --major $major --minor $minor"
40 +ENV{ID_FS_TYPE}=="LVM2_member|LVM1_member", RUN+="$env{LVM_SBIN_PATH}/lvm pvscan --cache --major $major --minor $minor"
41
42 LABEL="lvm_end"