From: Laszlo Gombos Date: Sun, 7 Apr 2024 13:38:00 +0000 (-0400) Subject: revert: "fix(dracut.sh): do not add device if find_block_device returns" X-Git-Tag: 101~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0885d6b2bb9d449f8a4e4f89ded3b619338df28d;p=thirdparty%2Fdracut-ng.git revert: "fix(dracut.sh): do not add device if find_block_device returns" This reverts commit 3d0d7e0737bd80f522f19918dc052bd795548b5e. --- diff --git a/dracut.sh b/dracut.sh index 18033a197..a0af3dd26 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1667,7 +1667,7 @@ if [[ $hostonly ]] && [[ $hostonly_default_device != "no" ]]; then "/boot/zipl"; do mp=$(readlink -f "$dracutsysrootdir$mp") mountpoint "$mp" > /dev/null 2>&1 || continue - _dev=$(find_block_device "$mp") || continue + _dev=$(find_block_device "$mp") _bdev=$(readlink -f "/dev/block/$_dev") [[ -b $_bdev ]] && _dev=$_bdev [[ $mp == "/" ]] && root_devs+=("$_dev")