]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
disk: part_efi: update partition table entries after write
authorGary Bisson <gary.bisson@boundarydevices.com>
Tue, 26 Jan 2021 13:56:23 +0000 (14:56 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 29 Jan 2021 19:22:40 +0000 (20:22 +0100)
Fixes fastboot issues when switching from mbr to gpt partition tables.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
disk/part_efi.c

index 2f922662e6e65212ca516614f16590ac6bc3aeef..7a24e33d189f40a8785cd7d816f0449f6b83791f 100644 (file)
@@ -867,6 +867,9 @@ int write_mbr_and_gpt_partitions(struct blk_desc *dev_desc, void *buf)
                return 1;
        }
 
+       /* Update the partition table entries*/
+       part_init(dev_desc);
+
        return 0;
 }
 #endif