diff options
Diffstat (limited to 'cmd/gpt.c')
-rw-r--r-- | cmd/gpt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/gpt.c b/cmd/gpt.c index d7e96529a69..36b112d5978 100644 --- a/cmd/gpt.c +++ b/cmd/gpt.c @@ -10,7 +10,6 @@ * author: Piotr Wilczek <p.wilczek@samsung.com> */ -#include <common.h> #include <blk.h> #include <env.h> #include <log.h> @@ -643,6 +642,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; } |