From: Harald Hoyer Date: Wed, 22 Feb 2012 18:06:00 +0000 (+0100) Subject: dracut-functions.sh:for_each_host_dev_fs() return a value X-Git-Tag: 017~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2efa546f26ae95399ca4497574bc815795d16316;p=thirdparty%2Fdracut.git dracut-functions.sh:for_each_host_dev_fs() return a value for_each_host_dev_fs() now returns 0 if one func returned with 0 --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 95d7cbba2..199fca472 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -303,6 +303,7 @@ for_each_host_dev_fs() local _func="$1" local _dev local _fs + local _ret=1 for f in ${host_fs_types[@]}; do OLDIFS="$IFS" IFS="|" @@ -311,8 +312,9 @@ for_each_host_dev_fs() _dev="$1" [[ -b "$_dev" ]] || continue _fs="$2" - $_func $_dev $_fs + $_func $_dev $_fs && _ret=0 done + return $_ret } # Walk all the slave relationships for a given block device.