]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
revert: "fix(dracut.sh): do not add device if find_block_device returns"
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 7 Apr 2024 13:38:00 +0000 (09:38 -0400)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 7 Apr 2024 14:13:11 +0000 (10:13 -0400)
This reverts commit 3d0d7e0737bd80f522f19918dc052bd795548b5e.

dracut.sh

index 18033a197b404a19b7733c6fbcb9acee56c8cb8b..a0af3dd267f9c5ed74f195a7be0e3ec7af2d285c 100755 (executable)
--- 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")