diff options
author | Kishan Dudhatra <kishan.dudhatra@siliconsignals.io> | 2024-04-22 23:47:33 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-05-03 12:22:58 -0600 |
commit | 8024d577897d57d0b9ec2dd92449e06e7f74f0e0 (patch) | |
tree | c0bb127fd6d78422ec3683f9b64510bcab0c98af | |
parent | d881da3b424c1b8c6e7fa1b832264800a5b03c4f (diff) | |
download | u-boot-8024d577897d57d0b9ec2dd92449e06e7f74f0e0.zip u-boot-8024d577897d57d0b9ec2dd92449e06e7f74f0e0.tar.gz u-boot-8024d577897d57d0b9ec2dd92449e06e7f74f0e0.tar.bz2 |
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>
-rw-r--r-- | cmd/gpt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |