package dmsetup
tags 501736 + wontfix
thanks

On Thu, Oct 09, 2008 at 11:30:18PM +0200, Mario 'BitKoenig' Holbe wrote:
> This can be suppressed by telling udev a different device NAME, in which
> case findfs returns the descriptive node.
...
> Perhaps... for backward compatibility one could additionally
> SYMLINK+="%k". Don't know if this is really needed, since the dm-<minor>

Oups, at least lilo depends on the /dev/dm-<minor> link because it's
referenced in /proc/partitions. And with the symlink in place, findfs
returns /dev/dm-<minor> again, *sigh*. Thus... even though I'll attach
a fixed patch, I'll tag the bug wontfix as well, since with this patch
the /dev/dm-<minor> exposure isn't fixed anymore, so it makes no sense
to apply it at all :/


Mario
-- 
There are 10 types of people in the world:
Those who understand binary, and those who don't...
--- /etc/udev/rules.d/65_dmsetup.rules.orig	2008-10-01 19:05:55.000000000 +0200
+++ /etc/udev/rules.d/65_dmsetup.rules	2008-10-10 15:51:44.000000000 +0200
@@ -16,6 +16,9 @@
 ENV{DM_STATE_ACTIVE}!="?*",			GOTO="device_mapper_end"
 ENV{DM_TARGET_TYPES}=="|*error*",		GOTO="device_mapper_end"
 
+# Suppress creation of /dev/dm-* nodes, dmsetup creates /dev/mapper/name nodes.
+KERNEL=="dm-*",					NAME="mapper/$env{DM_NAME}", SYMLINK+="%k"
+
 IMPORT{program}="vol_id --export $tempnode"
 
 OPTIONS+="link_priority=-100"

Attachment: signature.asc
Description: Digital signature

Reply via email to