Blame 0079-dracut-functions-_x-should-exist-no-need-to-test.patch

Harald Hoyer 811c04
From b2d225a6698607bbcb73b6e6d12fbfc5be014102 Mon Sep 17 00:00:00 2001
Harald Hoyer 811c04
From: Chao Wang <chaowang@redhat.com>
Harald Hoyer 811c04
Date: Mon, 30 Jul 2012 11:56:29 +0800
Harald Hoyer 811c04
Subject: [PATCH] dracut-functions: $_x should exist, no need to test.
Harald Hoyer 811c04
Harald Hoyer 811c04
Signed-off-by: Chao Wang <chaowang@redhat.com>
Harald Hoyer 811c04
---
Harald Hoyer 811c04
 dracut-functions.sh | 1 -
Harald Hoyer 811c04
 1 file changed, 1 deletion(-)
Harald Hoyer 811c04
Harald Hoyer 811c04
diff --git a/dracut-functions.sh b/dracut-functions.sh
Harald Hoyer 811c04
index 9242204..04b4c7a 100755
Harald Hoyer 811c04
--- a/dracut-functions.sh
Harald Hoyer 811c04
+++ b/dracut-functions.sh
Harald Hoyer 811c04
@@ -423,7 +423,6 @@ check_block_and_slaves() {
Harald Hoyer 811c04
     fi
Harald Hoyer 811c04
     [[ -d /sys/dev/block/$2/slaves ]] || return 1
Harald Hoyer 811c04
     for _x in /sys/dev/block/$2/slaves/*/dev; do
Harald Hoyer 811c04
-        [[ -f $_x ]] || continue
Harald Hoyer 811c04
         check_block_and_slaves $1 $(cat "$_x") && return 0
Harald Hoyer 811c04
     done
Harald Hoyer 811c04
     return 1