aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Pascal de Bruijn <p.debruijn@unilogic.nl>2020-01-02 16:26:45 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-01-10 21:05:31 +0100
commitdba82ff899fbab251a9856d2b742b208674d99c2 (patch)
tree74cf40577a5076590b1ecbf650612827aa7123df
parent9e94ec534f4fa0f0ba9d3153d7be5d737ca53fb8 (diff)
downloadbuildroot-dba82ff899fbab251a9856d2b742b208674d99c2.tar.gz
buildroot-dba82ff899fbab251a9856d2b742b208674d99c2.tar.bz2
package/lvm2: install udev rules
Without the device-mapper udev rules, dm devices will not get a proper symlink like /dev/disk/by-label/LABEL, which in turn causes fstab LABEL= mounts to fails. And by extension causes shenanigans with systemd, where it will unmount a manually mounted disk because it can't resolve the label. Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 51ec0f48eee4115b4eee745902151e2583b01016) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/lvm2/lvm2.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index 14575668a5..3da713fe83 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -31,6 +31,10 @@ LVM2_MAKE_ENV = $(TARGET_CONFIGURE_OPTS)
# package/readline is GPL-3.0+, so not license compatible
LVM2_CONF_OPTS += --disable-readline
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+LVM2_CONF_OPTS += --enable-udev_rules
+endif
+
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
LVM2_CONF_OPTS += --enable-selinux
LVM2_DEPENDENCIES += libselinux