Skip to contentSkip to conversation

package/lvm2: install udev rules

PATCH New Pascal de Bruijn 3 participants 3 messages Jan 2, 2020 – Jan 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/lvm2/lvm2.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/lvm2/lvm2.mk +4 -0
index 1457566..3da713f 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/lvm2: install udev rules

Quoted 11 lines · On Thu, 2 Jan 2020 16:26:45 +0100 Pascal de Bruijn <[email protected]>…

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.

---
 package/lvm2/lvm2.mk | 4 ++++
 1 file changed, 4 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/lvm2: install udev rules

In reply to Pascal de Bruijn
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

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.

Committed to 2019.02.x and 2019.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard