block: consider currently mounted root device first
authorDaniel Golle <daniel@makrotopia.org>
Tue, 3 Jan 2023 12:07:15 +0000 (13:07 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 28 May 2023 16:01:52 +0000 (17:01 +0100)
commit56a9b4e7e39514813208b776605899c80a37a7f3
tree779726d32e51a8c1de4f77fb45f36b436ef6cf2d
parent9cd09d4269bb15710b5d9bd72573ef243eb2927c
block: consider currently mounted root device first

First look for the currently mounted root device and then fallback to
looking for rootfs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
block.c