bug#35714: Parted destroys mbr_signature (Disk Identifier) when adding MBR bootcode

2019-05-16 Thread Phillip Susi
Matthijs Kooijman writes: > Hi folks, > > I believe I found a bug in the dos partition table writer. Let me start > with the cause. There's this bit of code: > > if (!table->boot_code[0]) { > memset (table->boot_code, 0, 512); > memcpy (table->boot_code, MBR_BOO

bug#35714: Parted destroys mbr_signature (Disk Identifier) when adding MBR bootcode

2019-05-13 Thread Matthijs Kooijman
Hi folks, one more addition: Below is an example of reproducing this problem on an Ubuntu Disco system running parted 3.2-25. I haven't tried git master, but looking at the code, I'm pretty sure the problem stil exists there. Gr. Matthijs # Use fdisk to create an empty partition table without

bug#35714: Parted destroys mbr_signature (Disk Identifier) when adding MBR bootcode

2019-05-13 Thread Matthijs Kooijman
Hi folks, I believe I found a bug in the dos partition table writer. Let me start with the cause. There's this bit of code: if (!table->boot_code[0]) { memset (table->boot_code, 0, 512); memcpy (table->boot_code, MBR_BOOT_CODE, sizeof (MBR_BOOT_CODE));