buildroot: package/lvm2: install dmsetup only (#1448) (#1481)

LVM2 is not really required in the embedded use case. Opt out of
installing the standard installation which will install only dmsetup.
This requires a backported fix for the lvm2 package to not install
unnecessary systemd services.

Fixes: #1448
This commit is contained in:
Stefan Agner
2021-07-28 14:46:00 +02:00
committed by GitHub
parent cd0c9032d3
commit 3aac1ae373
10 changed files with 95 additions and 34 deletions

View File

@@ -53,6 +53,9 @@ LVM2_INSTALL_TARGET_OPTS += install_device-mapper
else
LVM2_INSTALL_STAGING_OPTS += install
LVM2_INSTALL_TARGET_OPTS += install
ifeq ($(BR2_INIT_SYSTEMD),y)
LVM2_INSTALL_TARGET_OPTS += install_systemd_units install_systemd_generators
endif
endif
ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
@@ -67,10 +70,6 @@ else
LVM2_CONF_OPTS += --disable-lvmetad
endif
ifeq ($(BR2_INIT_SYSTEMD),y)
LVM2_INSTALL_TARGET_OPTS += install_systemd_units install_systemd_generators
endif
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
endif