From: Lidong Zhong Date: Mon, 24 Aug 2015 10:27:54 +0000 (+0800) Subject: dracut.sh: remove duplicate call of push_host_devs X-Git-Tag: 044~106^2~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F90%2Fhead;p=thirdparty%2Fdracut.git dracut.sh: remove duplicate call of push_host_devs There is no way exit between the two places that call push_host_devs --- diff --git a/dracut.sh b/dracut.sh index f7d31a406..8ca319b61 100755 --- 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