From: Harald Hoyer Date: Thu, 29 Mar 2012 12:37:41 +0000 (+0200) Subject: dracut-functions.sh: proper return get_fs_env() and get_fs_type() X-Git-Tag: 018~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e03c77cb5b7158f45ad64346a479f611118c257e;p=thirdparty%2Fdracut.git dracut-functions.sh: proper return get_fs_env() and get_fs_type() --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 8d31215d2..563669ef1 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -174,7 +174,7 @@ get_fs_env() { | while read line; do [[ "$line" =~ 'ID_FS_(TYPE|UUID)=' ]] && echo $line; done) - [[ $ID_FS_TYPE ]] && return + [[ $ID_FS_TYPE ]] && return 0 if [[ -x /lib/udev/vol_id ]]; then eval $(/lib/udev/vol_id --export $1) @@ -206,11 +206,11 @@ get_fs_type() ( || [[ $1 != ${1#/dev/block/nfs3:} ]] \ || [[ $1 != ${1#/dev/block/nfs4:} ]]; then echo "nfs" - return + return 0 fi if get_fs_env $1; then echo $ID_FS_TYPE - return + return 0 fi find_dev_fstype $1 )