diff options
author | Peter Jones <pjones@redhat.com> | 2006-02-13 18:17:56 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-02-13 18:17:56 +0000 |
commit | 9e48de270bda31ea430773823b39884fbb72aa32 (patch) | |
tree | 35c090c04c81d06f6944cba6531f5adc50d75058 | |
parent | 0ce6461ddb6d35b621043d382dc462756d2ffaad (diff) | |
download | initscripts-9e48de270bda31ea430773823b39884fbb72aa32.tar initscripts-9e48de270bda31ea430773823b39884fbb72aa32.tar.gz initscripts-9e48de270bda31ea430773823b39884fbb72aa32.tar.bz2 initscripts-9e48de270bda31ea430773823b39884fbb72aa32.tar.xz initscripts-9e48de270bda31ea430773823b39884fbb72aa32.zip |
- check for "No devices found" when calling dmsetup
-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 9ef25fe0..521b4d0f 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -501,6 +501,6 @@ resolve_dm_name() { newline=$(echo $newline | sed -e "s,$x\( \|$\),$majmin\1,g") fi done - /sbin/dmsetup table | sed -n "s/\(^[^:]\+\): $newline\( \+$\|$\)/\1/p" + /sbin/dmsetup table | grep -v "No devices found" | sed -n "s/\(^[^:]\+\): $newline\( \+$\|$\)/\1/p" ) 2>/dev/null } |