aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}