]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - udev-md-raid.rules
added --path <path_id> to give the information on the 'path-id' of removed device
[thirdparty/mdadm.git] / udev-md-raid.rules
index f9607f37cd68e370fcd17702993dca8428f348cd..a4a57ac8353283b7d1311258eda1c1726984e87b 100644 (file)
@@ -3,7 +3,7 @@
 SUBSYSTEM!="block", GOTO="md_end"
 
 # handle potential components of arrays
-ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="remove", RUN+="/sbin/mdadm -If $name"
+ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="remove", RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
 ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="add", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
 
 # handle md arrays