mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Krause <bst@pengutronix.de>
Subject: [ptxdist] [PATCH] lvm2: enable udev sync if systemd is enabled
Date: Mon, 25 Feb 2019 15:19:04 +0100	[thread overview]
Message-ID: <20190225141904.29316-1-bst@pengutronix.de> (raw)

udev sync makes sure that the mapping devices in /dev/mapper/ are
symlinks to /dev/dm-X and systemd can now track the device status of the
mapping devices via udev.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/lvm2.in   | 4 ++++
 rules/lvm2.make | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/rules/lvm2.in b/rules/lvm2.in
index b53086d8b..8c75cfda6 100644
--- a/rules/lvm2.in
+++ b/rules/lvm2.in
@@ -6,6 +6,7 @@ menuconfig LVM2
 	select GCCLIBS_GCC_S
 	select READLINE
 	select NCURSES
+	select SYSTEMD if LVM2_SYSTEMD
 	prompt "lvm2                          "
 	help
 	  LVM2 refers to a new userspace toolset that provide logical volume management
@@ -51,4 +52,7 @@ config LVM2_DEVICE_MODE
 	help
 	  The effective access mode of the device nodes create by LVM
 
+config LVM2_SYSTEMD
+	bool
+	default INITMETHOD_SYSTEMD
 endif
diff --git a/rules/lvm2.make b/rules/lvm2.make
index 960417bd5..86004378e 100644
--- a/rules/lvm2.make
+++ b/rules/lvm2.make
@@ -60,6 +60,8 @@ LVM2_CONF_OPT := \
 	--disable-dmfilemapd \
 	--disable-notify-dbus \
 	--disable-blkid_wiping \
+	--$(call ptx/endis, PTXCONF_LVM2_SYSTEMD)-udev_sync \
+	--$(call ptx/endis, PTXCONF_LVM2_SYSTEMD)-udev_rules \
 	--disable-compat \
 	--disable-units-compat \
 	--enable-ioctl \
@@ -158,6 +160,10 @@ ifneq ($(call remove_quotes,$(PTXCONF_LVM2_BBINIT_LINK)),)
 		../init.d/lvm2, \
 		/etc/rc.d/$(PTXCONF_LVM2_BBINIT_LINK))
 endif
+endif
+
+ifdef PTXCONF_LVM2_SYSTEMD
+	@$(call install_tree, lvm2, 0, 0, -, /usr/lib/udev/rules.d/)
 endif
 	@$(call install_finish, lvm2)
 
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-02-25 14:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20190225141904.29316-1-bst@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox