[Buildroot] [PATCH 2/3] package/lvm2: add a host variant

Yann E. MORIN yann.morin.1998 at free.fr
Mon Dec 2 22:29:56 UTC 2013


From: "Yann E. MORIN" <yann.morin.1998 at free.fr>

Will be needed later for host-parted.

We need to force --with-confdir and --with-default-system-dir, otherwise
lvm2 tries to install /etc/lvm/profile which we can't do, and don't want
to do.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
---
 package/lvm2/lvm2.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index 2761100..eada3ec 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -50,4 +50,9 @@ else
 LVM2_CONF_OPT += --disable-applib
 endif
 
+HOST_LVM2_CONF_OPT += \
+	--with-confdir=$(HOST_DIR)/etc \
+	--with-default-system-dir=$(HOST_DIR)/etc/lvm
+
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
-- 
1.8.1.2




More information about the buildroot mailing list