From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Jul 2026 10:34:49 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wfZMH-00CYSm-0X for lore@lore.pengutronix.de; Fri, 03 Jul 2026 10:34:49 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wfZMH-0004pr-1O; Fri, 03 Jul 2026 10:34:49 +0200 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wfZM8-0004Od-Hx; Fri, 03 Jul 2026 10:34:40 +0200 From: =?UTF-8?q?Sven=20P=C3=BCschel?= To: ptxdist@pengutronix.de Date: Fri, 3 Jul 2026 10:33:35 +0200 Message-ID: <20260703083435.1279918-2-s.pueschel@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260703083435.1279918-1-s.pueschel@pengutronix.de> References: <20260703083435.1279918-1-s.pueschel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH v2 2/3] lvm2: add option for libdevmapper-event.so X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Sven=20P=C3=BCschel?= Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Add an option for libdevmapper-event.so, as it's not required by dmsetup. This allows omitting the library, if it's not being used by any other application on the system. Signed-off-by: Sven Püschel --- v2 - move select to LVM2 and add if condition - remove redundant 'default n' --- rules/lvm2.in | 5 +++++ rules/lvm2.make | 3 +++ 2 files changed, 8 insertions(+) diff --git a/rules/lvm2.in b/rules/lvm2.in index db009f8d5..032ed5006 100644 --- a/rules/lvm2.in +++ b/rules/lvm2.in @@ -8,6 +8,7 @@ menuconfig LVM2 select READLINE select NCURSES select SYSTEMD if LVM2_SYSTEMD + select LVM2_LIBDEVMAPPER_EVENT if LVM2_LVM_TOOLS prompt "lvm2 " help LVM2 refers to a new userspace toolset that provide logical volume management @@ -33,6 +34,10 @@ config LVM2_STARTSCRIPT endif +config LVM2_LIBDEVMAPPER_EVENT + bool + prompt "install libdevmapper-event.so" + config LVM2_DEVICE_UID int default 0 diff --git a/rules/lvm2.make b/rules/lvm2.make index d45c89356..57773a1f7 100644 --- a/rules/lvm2.make +++ b/rules/lvm2.make @@ -163,7 +163,10 @@ ifdef PTXCONF_LVM2_LVM_TOOLS endif @$(call install_lib, lvm2, 0, 0, 0644, libdevmapper) + +ifdef PTXCONF_LVM2_LIBDEVMAPPER_EVENT @$(call install_lib, lvm2, 0, 0, 0644, libdevmapper-event) +endif ifdef PTXCONF_LVM2_STARTSCRIPT @$(call install_alternative, lvm2, 0, 0, 0755, /etc/init.d/lvm2) -- 2.47.3