]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: $_x should exist, no need to test.
authorChao Wang <chaowang@redhat.com>
Mon, 30 Jul 2012 03:56:29 +0000 (11:56 +0800)
committerHarald Hoyer <harald@redhat.com>
Mon, 30 Jul 2012 10:23:32 +0000 (12:23 +0200)
Signed-off-by: Chao Wang <chaowang@redhat.com>
dracut-functions.sh

index 9242204bf6e9a32519a4e785e0ec2f504c37b124..04b4c7a34b6f9ea3e90a3805e039c8df30fbe909 100755 (executable)
@@ -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