base/dracut-lib.sh:ismounted() check for block device rather than pathname

master
Harald Hoyer 2012-07-31 14:44:50 +02:00
parent a638056838
commit 5545fc3046
1 changed files with 1 additions and 1 deletions
modules.d/99base

View File

@ -464,7 +464,7 @@ find_mount() {
# usage: ismounted <mountpoint>
# usage: ismounted /dev/<device>
ismounted() {
if str_starts "$1" "/dev/"; then
if [ -b "$1" ]; then
find_mount "$1" > /dev/null && return 0
return 1
fi