Skip to contentSkip to conversation

package/lvm2: optional systemd integration

PATCH New Pascal de Bruijn 2 participants 2 messages Feb 4, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 package/lvm2: optional systemd integration

---
 package/lvm2/Config.in | 7 +++++++
 package/lvm2/lvm2.mk   | 6 ++++++
 2 files changed, 13 insertions(+)
package/lvm2/Config.in +7 -0
index de5b972..0f9e86e 100644
@@ -47,6 +47,13 @@ config BR2_PACKAGE_LVM2_APP_LIBRARY
 comment "lvm2 application library needs a glibc or uClibc toolchain"
 	depends on BR2_TOOLCHAIN_USES_MUSL
 
+config BR2_PACKAGE_LVM2_SYSTEMD
+	bool "install systemd integration"
+	depends on BR2_PACKAGE_SYSTEMD
+	select BR2_PACKAGE_LVM2_APP_LIBRARY
+	help
+	  Install systemd generator and services.
+
 endif
 
 comment "lvm2 needs a toolchain w/ threads, dynamic library"
package/lvm2/lvm2.mk +6 -0
index 43370b0..9847f96 100644
@@ -54,6 +54,12 @@ else
 LVM2_CONF_OPTS += --disable-applib
 endif
 
+ifeq ($(BR2_PACKAGE_LVM2_SYSTEMD),y)
+LVM2_DEPENDANCIES += systemd
+LVM2_CONF_OPTS += --enable-lvmetad
+LVM2_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install install_systemd_units install_systemd_generators
+endif
+
 ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
 LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
 endif
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 package/lvm2: optional systemd integration

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Pascal" == Pascal de Bruijn <[email protected]> writes:

---
 package/lvm2/Config.in | 7 +++++++
 package/lvm2/lvm2.mk   | 6 ++++++
 2 files changed, 13 insertions(+)
package/lvm2/Config.in +0 -0
index de5b972..0f9e86e 100644

package/lvm2/Config.in config BR2_PACKAGE_LVM2_APP_LIBRARY · line 56

Quoted 10 lines
package/lvm2/Config.in +7 -0
@@ -47,6 +47,13 @@ config BR2_PACKAGE_LVM2_APP_LIBRARY
 comment "lvm2 application library needs a glibc or uClibc toolchain"
 	depends on BR2_TOOLCHAIN_USES_MUSL
 
+config BR2_PACKAGE_LVM2_SYSTEMD
+	bool "install systemd integration"
+	depends on BR2_PACKAGE_SYSTEMD
+	select BR2_PACKAGE_LVM2_APP_LIBRARY
+	help
+	  Install systemd generator and services.
+

Why would we want a user selectable option for this and not just automatically do that if systemd and app-library are enabled?

package/lvm2/lvm2.mk else · line 58

Quoted 13 lines
package/lvm2/Config.in +0 -0
 endif
 
 comment "lvm2 needs a toolchain w/ threads, dynamic library"
package/lvm2/lvm2.mk +2 -0
index 43370b0..9847f96 100644
@@ -54,6 +54,12 @@ else
 LVM2_CONF_OPTS += --disable-applib
 endif
 
+ifeq ($(BR2_PACKAGE_LVM2_SYSTEMD),y)
+LVM2_DEPENDANCIES += systemd

Typo.

package/lvm2/lvm2.mk else · line 59

Quoted 1 line
package/lvm2/lvm2.mk +1 -0
+LVM2_CONF_OPTS += --enable-lvmetad

What is lvmetad? What is the relation to systemd?

Signature · 1 line
Bye, Peter Korsgaard