
22 Apr
2024
22 Apr
'24
7:23 p.m.
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
diff --git a/cmd/gpt.c b/cmd/gpt.c index d7e96529a6..2d652f480a 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -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_dev_desc)->uclass_id == UCLASS_MMC) + part_init(blk_dev_desc); + return ret; }
--
2.34.1