summaryrefslogtreecommitdiff
path: root/etc/udev/suse/64-md-raid.rules
diff options
context:
space:
mode:
Diffstat (limited to 'etc/udev/suse/64-md-raid.rules')
-rw-r--r--etc/udev/suse/64-md-raid.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/udev/suse/64-md-raid.rules b/etc/udev/suse/64-md-raid.rules
new file mode 100644
index 0000000000..9070e215bc
--- /dev/null
+++ b/etc/udev/suse/64-md-raid.rules
@@ -0,0 +1,12 @@
+# md links hook into "change" events, when the array becomes available
+
+KERNEL!="md[0-9]*", GOTO="md_end"
+ACTION!="add|change", GOTO="md_end"
+
+ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
+
+IMPORT{program}="vol_id --export $tempnode"
+ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
+
+LABEL="md_end"