libfstools: partname: raise priority to 25
authorDaniel Golle <daniel@makrotopia.org>
Mon, 11 Dec 2023 22:28:44 +0000 (22:28 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 11 Dec 2023 22:28:44 +0000 (22:28 +0000)
Make sure partname has precedence over UBI and MTD.
We already got ways to prevent partname for matching partitions if
needed, however, we would need them as well for UBI and MTD to prevent
use of UBI rootfs_data despite having started from MMC on boards
having both (such as the BPi-R3).

Reported-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/partname.c

index 74bd60827e93d311759b325cde12d0d490f554f3..9f2347a02acec9bd7b1af4d421c7891b864e8ee0 100644 (file)
@@ -199,6 +199,7 @@ static struct volume *partname_volume_find(char *name)
 
 static struct driver partname_driver = {
        .name = "partname",
+       .priority = 25,
        .find = partname_volume_find,
        .init = partname_volume_init,
        .identify = partname_volume_identify,