aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-02-13 18:17:56 +0000
committerPeter Jones <pjones@redhat.com>2006-02-13 18:17:56 +0000
commit9e48de270bda31ea430773823b39884fbb72aa32 (patch)
tree35c090c04c81d06f6944cba6531f5adc50d75058
parent0ce6461ddb6d35b621043d382dc462756d2ffaad (diff)
downloadinitscripts-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-xrc.d/init.d/functions2
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
}