mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 19:34:35 +00:00
disk: part_dos: update partition table entries after write
Fixes issues when switching from GPT to MBR partition tables. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
parent
7a01882eb3
commit
f14c5ee5ab
1 changed files with 6 additions and 0 deletions
|
@ -423,6 +423,9 @@ int write_mbr_partitions(struct blk_desc *dev,
|
||||||
ext_part_sect = next_ebr;
|
ext_part_sect = next_ebr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Update the partition table entries*/
|
||||||
|
part_init(dev_desc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -499,6 +502,9 @@ int write_mbr_sector(struct blk_desc *dev_desc, void *buf)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Update the partition table entries*/
|
||||||
|
part_init(dev_desc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue