projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0330b91
)
dracut-functions.sh:for_each_host_dev_fs() return a value
author
Harald Hoyer
<harald@redhat.com>
Wed, 22 Feb 2012 18:06:00 +0000
(19:06 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 22 Feb 2012 18:06:00 +0000
(19:06 +0100)
for_each_host_dev_fs() now returns 0 if one func returned with 0
dracut-functions.sh
patch
|
blob
|
history
diff --git
a/dracut-functions.sh
b/dracut-functions.sh
index
95d7cbb
..
199fca4
100755
(executable)
--- 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.