diff options
author | Bill Nottingham <notting@redhat.com> | 2006-08-07 17:04:56 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-08-07 17:04:56 +0000 |
commit | 68f9579a8110068e6a5791240a5b4d74d43bfd64 (patch) | |
tree | ba686be858789c6d9386e3cb7cae58310db61b1b /rc.d/init.d | |
parent | 02b7bcde84fe0e10870fef468b502416698f13b8 (diff) | |
download | initscripts-68f9579a8110068e6a5791240a5b4d74d43bfd64.tar initscripts-68f9579a8110068e6a5791240a5b4d74d43bfd64.tar.gz initscripts-68f9579a8110068e6a5791240a5b4d74d43bfd64.tar.bz2 initscripts-68f9579a8110068e6a5791240a5b4d74d43bfd64.tar.xz initscripts-68f9579a8110068e6a5791240a5b4d74d43bfd64.zip |
catch more errors from dmraid (#200683)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 2576f463..0c278f8a 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -562,7 +562,7 @@ resolve_dm_name() { ( name="$1" - line=$(/sbin/dmraid -ay -t --ignorelocking | egrep -iv "no block devices found|No RAID disks" | awk -F ':' "{ if (\$1 ~ /^$name$/) { print \$2; }}") + line=$(/sbin/dmraid -ay -t --ignorelocking | egrep -iv "^[nN]o " | awk -F ':' "{ if (\$1 ~ /^$name$/) { print \$2; }}") newline=$line for x in $line ; do if [[ "$x" =~ "^/dev/" ]] ; then |