Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[arista/aboot]: Zero out 1st MB before repartitioning (sonic-net#5220)
The first partition starting point was changed to be 1M as part of this commit: 6ba2f97. On systems that are misaligned before conversion (partition start is the first sector), the relica partition that is left in the first MB can cause problems in Aboot and result in corruption of the filesystem on the new aligned partition. Zeroing this old relica makes sure that there is nothing left of the old partition lying around. There won't be any risk of having Aboot corrupt the new filesystem because of the old relica. Signed-off-by: Baptiste Covolato <baptiste@arista.com>
- Loading branch information