cmd: gpt: initialize partition table

Change in v2:
	- Fix applies to all block devices, not just MMC.

If partition init is not completed within the gpt write,
the gpt partition list will not be updated.

Signed-off-by: Kishan Dudhatra <kishan.dudhatra@siliconsignals.io>
This commit is contained in:
Kishan Dudhatra 2024-04-22 23:47:33 +05:30 committed by Tom Rini
parent d881da3b42
commit 8024d57789

View File

@ -643,6 +643,10 @@ static int gpt_default(struct blk_desc *blk_dev_desc, const char *str_part)
free(str_disk_guid);
free(partitions);
/* initialize partition table */
if (blk_enabled())
part_init(blk_dev_desc);
return ret;
}