Blame 0077-dracut.sh-remove-duplicate-call-of-push_host_devs.patch

Harald Hoyer bb31e7
From aa169b3bd37b74bdf1e15318ab423ef4b9001fd2 Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: Lidong Zhong <lzhong@suse.com>
Harald Hoyer bb31e7
Date: Mon, 24 Aug 2015 18:27:54 +0800
Harald Hoyer bb31e7
Subject: [PATCH] dracut.sh: remove duplicate call of push_host_devs
Harald Hoyer bb31e7
Harald Hoyer bb31e7
There is no way exit between the two places that call push_host_devs
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 dracut.sh | 1 -
Harald Hoyer bb31e7
 1 file changed, 1 deletion(-)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer bb31e7
index f7d31a4..8ca319b 100755
Harald Hoyer bb31e7
--- a/dracut.sh
Harald Hoyer bb31e7
+++ b/dracut.sh
Harald Hoyer bb31e7
@@ -1113,7 +1113,6 @@ if [[ $hostonly ]]; then
Harald Hoyer bb31e7
         _dev=$(find_block_device "$mp")
Harald Hoyer bb31e7
         _bdev=$(readlink -f "/dev/block/$_dev")
Harald Hoyer bb31e7
         [[ -b $_bdev ]] && _dev=$_bdev
Harald Hoyer bb31e7
-        push_host_devs $_dev
Harald Hoyer bb31e7
         [[ "$mp" == "/" ]] && root_devs+=("$_dev")
Harald Hoyer bb31e7
         push_host_devs "$_dev"
Harald Hoyer bb31e7
         if [[ $(find_mp_fstype "$mp") == btrfs ]]; then