diff options
author | root <root@rshg054.dnsready.net> | 2013-05-22 00:46:35 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-05-22 00:46:35 -0700 |
commit | bdf2189826c1931878cedc2262f67f6fd3c0ef15 (patch) | |
tree | 36ebbf884af31c36516746e43961ddf1f88fd452 /core/mdadm/mdadm-fix-udev-rules.patch | |
parent | 4a7d2439a50adfa30bed83cc92ee80ec62476a20 (diff) |
Wed May 22 00:46:35 PDT 2013
Diffstat (limited to 'core/mdadm/mdadm-fix-udev-rules.patch')
-rw-r--r-- | core/mdadm/mdadm-fix-udev-rules.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/mdadm/mdadm-fix-udev-rules.patch b/core/mdadm/mdadm-fix-udev-rules.patch index 60f5ae131..941cadf3a 100644 --- a/core/mdadm/mdadm-fix-udev-rules.patch +++ b/core/mdadm/mdadm-fix-udev-rules.patch @@ -39,7 +39,7 @@ index 0000000..883ee4d +ATTR{md/array_state}=="|clear|inactive", ENV{SYSTEMD_READY}="0", GOTO="md_end" +LABEL="md_ignore_state" + -+IMPORT{program}="/sbin/mdadm --detail --export $devnode" ++IMPORT{program}="/usr/bin/mdadm --detail --export $devnode" +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}=="disk", ENV{MD_DEVNAME}=="?*", SYMLINK+="md/$env{MD_DEVNAME}" @@ -75,9 +75,9 @@ index 0000000..b89775e + +# remember you can limit what gets auto/incrementally assembled by +# mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY' -+ACTION=="add", RUN+="/sbin/mdadm --incremental $devnode --offroot" -+ACTION=="remove", ENV{ID_PATH}=="?*", RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}" -+ACTION=="remove", ENV{ID_PATH}!="?*", RUN+="/sbin/mdadm -If $name" ++ACTION=="add", RUN+="/usr/bin/mdadm --incremental $devnode --offroot" ++ACTION=="remove", ENV{ID_PATH}=="?*", RUN+="/usr/bin/mdadm -If $name --path $env{ID_PATH}" ++ACTION=="remove", ENV{ID_PATH}!="?*", RUN+="/usr/bin/mdadm -If $name" + +LABEL="md_inc_end" diff --git a/udev-md-raid.rules b/udev-md-raid.rules |