The MBR has no backup, so any failure when writing it may leads to critical issue. But when only using gpt partition, the protective MBR is always the same. It is useless to write it each time the gpt partition table is updated. Usually, the gpt is not written in the life of a product. But in case a product uses a dual bank scheme to update a board, the new version of the firmware will be written in backup partitions, and then swap the name of primary partitions and backup partitions. This leads to update the gpt table at each update. A failure while writing a gpt table may be recoved at next boot, but a failure when writing the protective MBR could break the board. So this patch removes useless update of the MBR, enhancing the reliability of the gpt table update. Philippe Reynes (1): libfdisk: write mbr only when useful libfdisk/src/gpt.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- 2.25.1