From: Harald Hoyer Date: Tue, 31 Jul 2012 12:43:05 +0000 (+0200) Subject: base/dracut-lib.sh: fixed ismounted() for "/dev" X-Git-Tag: 023~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6380568388a75d6d3a89ce81e0f360b8c5c70fa;p=platform%2Fupstream%2Fdracut.git base/dracut-lib.sh: fixed ismounted() for "/dev" --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index b638bd6..a39ca8c 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -464,7 +464,7 @@ find_mount() { # usage: ismounted # usage: ismounted /dev/ ismounted() { - if str_starts "$1" "/dev"; then + if str_starts "$1" "/dev/"; then find_mount "$1" > /dev/null && return 0 return 1 fi