From 2efa546f26ae95399ca4497574bc815795d16316 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 22 Feb 2012 19:06:00 +0100 Subject: [PATCH] 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 --- dracut-functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.47.3