All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] lvm2: fix run lvcreate hung while PACKAGECONFIG udev
@ 2019-09-29  8:03 Hongxu Jia
  0 siblings, 0 replies; only message in thread
From: Hongxu Jia @ 2019-09-29  8:03 UTC (permalink / raw)
  To: raj.khem; +Cc: openembedded-devel

Since lvm2-udevrules was removed from lvm RRECOMMENDS in the following commit:
[3f64779ea libdevmapper/lvm2: force recipe libdevmapper to populate sysroot only]
Execute the following command hung:
$ dd if=/dev/zero of=./p0 bs=1M count=100
$ dd if=/dev/zero of=./p1 bs=1M count=100
$ losetup /dev/loop20  ./p0
$ losetup /dev/loop21  ./p1
$ pvcreate -y /dev/loop20 -ff
$ pvcreate -y /dev/loop21 -ff
$ vgcreate rootvg /dev/loop20 /dev/loop21
$ lvcreate -v -y -L 50 -n rootlv rootvg

Add the missing pacakge to PACKAGECONFIG[udev] runtime depends could
fix the issue.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb b/meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb
index f42bd8ed2..9907d4f92 100644
--- a/meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb
+++ b/meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb
@@ -45,7 +45,7 @@ DEPENDS += "util-linux"
 LVM2_PACKAGECONFIG_append_class-target = " \
     udev \
 "
-PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udevdir=${nonarch_base_libdir}/udev/rules.d,--disable-udev_sync --disable-udev_rules,udev"
+PACKAGECONFIG[udev] = "--enable-udev_sync --enable-udev_rules --with-udevdir=${nonarch_base_libdir}/udev/rules.d,--disable-udev_sync --disable-udev_rules,udev,${PN}-udevrules"
 
 PACKAGES =+ "libdevmapper"
 FILES_libdevmapper = " \
-- 
2.23.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-29  8:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-29  8:03 [meta-oe][PATCH] lvm2: fix run lvcreate hung while PACKAGECONFIG udev Hongxu Jia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.