From: Gary Bisson Date: Thu, 28 Jan 2021 08:10:07 +0000 (+0100) Subject: disk: part_dos: update partition table entries after write X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=f14c5ee5ab8bfac0fdbae1143170d8390867479d;p=u-boot.git disk: part_dos: update partition table entries after write Fixes issues when switching from GPT to MBR partition tables. Signed-off-by: Gary Bisson Acked-by: Marek Szyprowski --- diff --git a/disk/part_dos.c b/disk/part_dos.c index f431925745..60addc6e00 100644 --- a/disk/part_dos.c +++ b/disk/part_dos.c @@ -423,6 +423,9 @@ int write_mbr_partitions(struct blk_desc *dev, ext_part_sect = next_ebr; } + /* Update the partition table entries*/ + part_init(dev_desc); + return 0; } @@ -499,6 +502,9 @@ int write_mbr_sector(struct blk_desc *dev_desc, void *buf) return 1; } + /* Update the partition table entries*/ + part_init(dev_desc); + return 0; }