dracut-functions: $_x should exist, no need to test.

Signed-off-by: Chao Wang <chaowang@redhat.com>
master
Chao Wang 2012-07-30 11:56:29 +08:00 committed by Harald Hoyer
parent a5f01bbfb5
commit b2d225a669
1 changed files with 0 additions and 1 deletions

View File

@ -423,7 +423,6 @@ check_block_and_slaves() {
fi
[[ -d /sys/dev/block/$2/slaves ]] || return 1
for _x in /sys/dev/block/$2/slaves/*/dev; do
[[ -f $_x ]] || continue
check_block_and_slaves $1 $(cat "$_x") && return 0
done
return 1