1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

udev: remove rule for explicit creation of /dev/mapper/control

We used KERNEL=="device-mapper", NAME="/dev/mapper/control" udev rule to
create the /dev/mapper/control file. The "NAME" rule should be only used
to rename network devices, otherwise udev issues a warning message. The
device-mapper driver has proper DEVNAME=/dev/mapper/control propagated
in the uevent environment when it is loaded so we don't need further
instruction on where to create the node - udev knows already.

Also, these days, it is created directly by kernel inside devtmpfs.
This makes the NAME="/dev/mapper/control" rule completely obsolete.
This commit is contained in:
Peter Rajnoha 2023-02-02 15:30:30 +01:00
parent e7c8a82506
commit 8498874147
No known key found for this signature in database
GPG Key ID: E776664036DF84AB
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.191 - Version 1.02.191 -
===================================== =====================================
Remove NAME="mapper/control" rule from 10-dm.rules to avoid udev warnings.
Version 1.02.189 - 22nd December 2022 Version 1.02.189 - 22nd December 2022
===================================== =====================================

View File

@ -28,8 +28,6 @@
# Also, keep in mind that recent rules may also require recent # Also, keep in mind that recent rules may also require recent
# subsystem-specific binaries. # subsystem-specific binaries.
KERNEL=="device-mapper", NAME="(DM_DIR)/control"
SUBSYSTEM!="block", GOTO="dm_end" SUBSYSTEM!="block", GOTO="dm_end"
KERNEL!="dm-[0-9]*", GOTO="dm_end" KERNEL!="dm-[0-9]*", GOTO="dm_end"
(DM_EXEC_RULE) (DM_EXEC_RULE)