mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
disk: gpt: print all partitions
For GPT partition tables the 'part list' command stops at the first invalid
partition number. But Ubuntu has images with partitions number
1, 12, 13, 14, 15
In this case only partition 1 was listed by 'part list'.
Fixes: 38a3021edc
("disk: part_efi: remove indent level from loop")
Reported-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
This commit is contained in:
parent
9ef5ccaa71
commit
504dbd224a
1 changed files with 2 additions and 2 deletions
|
@ -236,9 +236,9 @@ void part_print_efi(struct blk_desc *dev_desc)
|
||||||
printf("\tPartition GUID\n");
|
printf("\tPartition GUID\n");
|
||||||
|
|
||||||
for (i = 0; i < le32_to_cpu(gpt_head->num_partition_entries); i++) {
|
for (i = 0; i < le32_to_cpu(gpt_head->num_partition_entries); i++) {
|
||||||
/* Stop at the first non valid PTE */
|
/* Skip invalid PTE */
|
||||||
if (!is_pte_valid(&gpt_pte[i]))
|
if (!is_pte_valid(&gpt_pte[i]))
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
printf("%3d\t0x%08llx\t0x%08llx\t\"%s\"\n", (i + 1),
|
printf("%3d\t0x%08llx\t0x%08llx\t\"%s\"\n", (i + 1),
|
||||||
le64_to_cpu(gpt_pte[i].starting_lba),
|
le64_to_cpu(gpt_pte[i].starting_lba),
|
||||||
|
|
Loading…
Reference in a new issue