udev rules don't create device nodes for readonly devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devmapper (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The udev rules file skips to the end if DM_STATE != ACTIVE, but this breaks dmsetup luksOpen, which initially creates the device node read-only. The below patch fixes this.
--- /etc/udev/
+++ /etc/udev/
@@ -8,7 +8,7 @@
# Skip inactive devices, as well as snapshot and error tables
IMPORT{
-ENV{DM_
+ENV{DM_
ENV{DM_
# Make the /dev/mapper name a symlink to the real name, also include in by-id
Could you explain why you think this is a bug?
This prevents vol_id being run on read-only devices, and thus prevents any filesystem on them from being automatically used by udev.
Isn't this exactly what this flag is supposed to do?