From 419d39b2615973711404fc143e848755f6692cfc Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sat, 13 Apr 2024 00:24:58 +0200 Subject: [PATCH] package/lvm2: enable device-mapper in Kernel config LVM2 has a hard dependency on the device-mapper presence in the Kernel. This commit enables those mandatory Kernel configuration by defining the _LINUX_CONFIG_FIXUPS macro. This will make sure the final system image will end up in a working configuration. This was suggested by Arnout in [1]. [1] https://lists.buildroot.org/pipermail/buildroot/2024-April/688776.html Suggested-by: Arnout Vandecappelle Signed-off-by: Julien Olivain Signed-off-by: Thomas Petazzoni --- package/lvm2/lvm2.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk index bda1648955..4fcfddb1bb 100644 --- a/package/lvm2/lvm2.mk +++ b/package/lvm2/lvm2.mk @@ -76,5 +76,10 @@ HOST_LVM2_CONF_OPTS = \ --disable-selinux \ --with-confdir=$(HOST_DIR)/etc +define LVM2_LINUX_CONFIG_FIXUPS + $(call KCONFIG_ENABLE_OPT,CONFIG_MD) + $(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_DM) +endef + $(eval $(autotools-package)) $(eval $(host-autotools-package))