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 354d3376..5b7111c7 100644
--- a/common/protos/chainload.c
+++ b/common/protos/chainload.c
@@ -114,6 +114,7 @@ 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;
}
}
