:: commit 8a8b62fbcfc603a26e904a29b15ef3318d2cb1e9

mintsuki <mintsuki@protonmail.com> — 2022-07-14 17:24

parents: a41bc97e1b

chainload: Fix bug where PARTITION was ignored if MBR_ID was set. Addresses #197

diff --git a/common/protos/chainload.c b/common/protos/chainload.c
index 0b333c64..cf6d4cd0 100644
--- a/common/protos/chainload.c
+++ b/common/protos/chainload.c
@@ -117,6 +117,7 @@ noreturn void chainload(char *config) {
             volume_read(p, &mbr_id_1, 0x1b8, sizeof(uint32_t));
 
             if (mbr_id_1 == mbr_id) {
+                p = volume_get_by_coord(false, p->index, part);
                 goto load;
             }
         }
tab: 248 wrap: offon