summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-07 00:41:00 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-07 00:41:00 +0200
commitee173c5927649e8f2e6f42046315e84eb8e55e1b (patch)
tree2ec32dd626052a3db4d5b910b4eab279fd53f1a0 /rules
parent4df1d70329234fa10eceb02c8ecfff48e1ca9247 (diff)
replace spaces in dm and md name symlinks
We create multiple symlinks for dm names with spaces, which isn't what we want.
Diffstat (limited to 'rules')
-rw-r--r--rules/packages/64-md-raid.rules4
-rw-r--r--rules/suse/64-device-mapper.rules2
2 files changed, 3 insertions, 3 deletions
diff --git a/rules/packages/64-md-raid.rules b/rules/packages/64-md-raid.rules
index 02a321093a..0e6a939c12 100644
--- a/rules/packages/64-md-raid.rules
+++ b/rules/packages/64-md-raid.rules
@@ -11,9 +11,9 @@ KERNEL!="md*", GOTO="md_end"
ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
-ENV{DEVTYPE}=="disk", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
+ENV{DEVTYPE}=="disk", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}", OPTIONS+="string_escape=replace"
ENV{DEVTYPE}=="disk", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
-ENV{DEVTYPE}=="partition", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}-part%n"
+ENV{DEVTYPE}=="partition", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}-part%n", OPTIONS+="string_escape=replace"
ENV{DEVTYPE}=="partition", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}-part%n"
IMPORT{program}="vol_id --export $tempnode"
diff --git a/rules/suse/64-device-mapper.rules b/rules/suse/64-device-mapper.rules
index b065aec554..e0a63eee72 100644
--- a/rules/suse/64-device-mapper.rules
+++ b/rules/suse/64-device-mapper.rules
@@ -8,7 +8,7 @@ ACTION!="add|change", GOTO="device_mapper_end"
IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
-SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
+SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}", OPTIONS+="string_escape=replace"
ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
ENV{DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"