]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: remove duplicate call of push_host_devs 90/head
authorLidong Zhong <lzhong@suse.com>
Mon, 24 Aug 2015 10:27:54 +0000 (18:27 +0800)
committerLidong Zhong <lzhong@suse.com>
Mon, 24 Aug 2015 10:27:54 +0000 (18:27 +0800)
There is no way exit between the two places that call push_host_devs

dracut.sh

index f7d31a4061baf94a880c6f390703b92bc0a9c299..8ca319b61ddf687ce48517726289e5dc8946ccb7 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1113,7 +1113,6 @@ if [[ $hostonly ]]; then
         _dev=$(find_block_device "$mp")
         _bdev=$(readlink -f "/dev/block/$_dev")
         [[ -b $_bdev ]] && _dev=$_bdev
-        push_host_devs $_dev
         [[ "$mp" == "/" ]] && root_devs+=("$_dev")
         push_host_devs "$_dev"
         if [[ $(find_mp_fstype "$mp") == btrfs ]]; then