All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Ohly <patrick.ohly@intel.com>
To: openembedded-devel@lists.openembedded.org
Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Subject: Re: [meta-oe][PATCH 8/8] lvm2: Move libdevmapper to a separate package
Date: Thu, 16 Mar 2017 18:22:17 +0100	[thread overview]
Message-ID: <1489684937.6396.123.camel@intel.com> (raw)
In-Reply-To: <1489678953.6396.121.camel@intel.com>

On Thu, 2017-03-16 at 16:42 +0100, Patrick Ohly wrote:
> On Sat, 2017-02-18 at 03:10 +0100, Peter Kjellerstedt wrote:
> > This allows, e.g., cryptsetup to use libdevmapper without having to
> > pull in all of lvm2.
> 
> I'm experiencing an issue where both kpartx and cryptsetup hang
> infinitely. For kpartx, I traced it down to the lack of dmsetup udev
> rules in the rootfs, the same problem as in
> https://github.com/docker/docker/issues/22025#issuecomment-243943728
> 
> Adding lvm2 to my image fixed it, but that defeats the purpose of this
> patch... ;-}
> 
> Peter, do you know which parts of lvm2 are needed for kpartx
> +libdevicemapper to work correctly? My initial attempt with moving just
> the udev rules to the libdevicemapper packages was either flawed or
> incomplete.

The rules call dmsetup. Moving that also to libdevicemapper works for
me, see below. Shall I submit that as patch?

diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index b25d775f1..4804b6fb3 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -83,14 +83,17 @@ SYSTEMD_AUTO_ENABLE = "disable"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
-FILES_${PN} += "${libdir}/device-mapper/*.so ${nonarch_base_libdir}/udev"
+FILES_${PN} += "${libdir}/device-mapper/*.so"
 FILES_${PN}-scripts = " \
     ${sbindir}/blkdeactivate \
     ${sbindir}/fsadm \
     ${sbindir}/lvmconf \
     ${sbindir}/lvmdump \
 "
-FILES_libdevmapper = "${libdir}/libdevmapper.so.*"
+# Specified explicitly for the udev rules, just in case that it does not get picked
+# up automatically:
+RDEPENDS_${PN} += "libdevmapper"
+FILES_libdevmapper = "${sbindir}/dmsetup ${libdir}/libdevmapper.so.* ${nonarch_base_libdir}/udev/rules.d"
 FILES_libdevmapper-dev = " \
     ${libdir}/libdevmapper.so \
     ${libdir}/pkgconfig/devmapper.pc \


-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.





  reply	other threads:[~2017-03-16 17:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-18  2:10 [meta-oe][PATCH 1/8] lvm2: Depend on autoconf-archive-native instead of autoconf-archive Peter Kjellerstedt
2017-02-18  2:10 ` [meta-oe][PATCH 2/8] lvm2: Make sure odirect is always enabled Peter Kjellerstedt
2017-02-18  2:10 ` [meta-oe][PATCH 3/8] lvm2: Standardize how PACKAGECONFIG is defined Peter Kjellerstedt
2017-02-18  2:10 ` [meta-oe][PATCH 4/8] lvm2: Add a PACKAGECONFIG for udev support Peter Kjellerstedt
2017-02-18  2:10 ` [meta-oe][PATCH 5/8] lvm2: Add a PACKAGECONFIG for dmeventd Peter Kjellerstedt
2017-02-18  2:10 ` [meta-oe][PATCH 6/8] lvm2: Add a PACKAGECONFIG for lvmetad Peter Kjellerstedt
2017-02-18  2:10 ` [meta-oe][PATCH 7/8] lvm2: Move bash scripts to a separate package Peter Kjellerstedt
2017-02-18  2:10 ` [meta-oe][PATCH 8/8] lvm2: Move libdevmapper " Peter Kjellerstedt
2017-03-16 15:42   ` Patrick Ohly
2017-03-16 17:22     ` Patrick Ohly [this message]
2017-03-20 13:32       ` [meta-oe][PATCH] lvm2: libdevicemapper package needs udev rules and dmsetup Patrick Ohly
2017-03-20 15:14         ` [meta-oe][PATCH v2 1/2] " Patrick Ohly
2017-03-20 15:14           ` [meta-oe][PATCH v2 2/2] lvm2: fix lvm2-native RRECOMMENDS problem Patrick Ohly
2017-03-22  9:01             ` Peter Kjellerstedt
2017-03-22  9:00           ` [meta-oe][PATCH v2 1/2] lvm2: libdevicemapper package needs udev rules and dmsetup Peter Kjellerstedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489684937.6396.123.camel@intel.com \
    --to=patrick.ohly@intel.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.