Bug#632048: segfault in grub-setup

2011-09-06 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 06.09.2011 18:50, Stephane Chazelas wrote: > 2011-09-06 09:18:57 +0100, Colin Watson: >> On Tue, Sep 06, 2011 at 08:39:24AM +0100, Stephane Chazelas wrote: >>> I do get a segfault as well when doing a grub-setup/grub-install >>> on a mdraid with 1.2 metadata. >>> >>> The segv is in: >>> >>> grub

Bug#632048: segfault in grub-setup

2011-09-06 Thread Stephane Chazelas
2011-09-06 09:18:57 +0100, Colin Watson: > On Tue, Sep 06, 2011 at 08:39:24AM +0100, Stephane Chazelas wrote: > > I do get a segfault as well when doing a grub-setup/grub-install > > on a mdraid with 1.2 metadata. > > > > The segv is in: > > > > grub_util_biosdisk_is_floppy() because the disk->id

Bug#632048: segfault in grub-setup

2011-09-06 Thread Stephane Chazelas
I do get a segfault as well when doing a grub-setup/grub-install on a mdraid with 1.2 metadata. The segv is in: grub_util_biosdisk_is_floppy() because the disk->id for the root device is not a bios disk id, but a big number that is the "array id". The patch below seems to fix it for me, though I