bootstd: rauc: Don't check root part filesystem
authorLeonard Anderweit <l.anderweit@phytec.de>
Tue, 18 Nov 2025 14:30:20 +0000 (15:30 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 27 Nov 2025 15:27:03 +0000 (09:27 -0600)
Only check if the root partition exists when scanning for the slots
partitions and not if the filesystem can be accessed. It is not needed
to access the filesystem of the root partition as it might not be
supported by u-boot or be encrypted.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Tested-by: Martin Schwan <m.schwan@phytec.de>
boot/bootmeth_rauc.c

index f5d5a97..1096dae 100644 (file)
@@ -17,6 +17,7 @@
 #include <fs.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <part.h>
 #include <string.h>
 #include <linux/stringify.h>
 #include <asm/cache.h>
@@ -121,10 +122,9 @@ static int distro_rauc_scan_parts(struct bootflow *bflow)
                        if (ret)
                                return log_msg_ret("part", ret);
                        fs_close();
-                       ret = fs_set_blk_dev_with_part(desc, slot->root_part);
+                       ret = part_get_info(desc, slot->root_part, NULL);
                        if (ret)
                                return log_msg_ret("part", ret);
-                       fs_close();
                }
        }
        str_free_list(boot_order_list);