Bug#426341: grub-pc: failure to read one device in a RAID-1 array causes boot failure

Robert Millan rmh at aybabtu.com
Tue May 29 14:19:55 UTC 2007


On Mon, May 28, 2007 at 03:42:51AM +0100, Sam Morris wrote:
> 
> A partial patch was suggested which solves the issue for now:
> 
> Index: disk/raid.c
> ===================================================================
> RCS file: /cvsroot/grub/grub2/disk/raid.c,v
> retrieving revision 1.3
> diff -u -p -r1.3 raid.c
> - --- disk/raid.c	17 May 2007 23:23:03 -0000	1.3
> +++ disk/raid.c	21 May 2007 13:10:25 -0000
> @@ -344,7 +344,10 @@ grub_raid_scan_device (const char *name)
>    err = grub_disk_read (disk, sector, 0, GRUB_RAID_SB_BYTES, (char *) &sb);
>    grub_disk_close (disk);
>    if (err)
> - -    return 0;
> +    {
> +      grub_errno = GRUB_ERR_NONE;
> +      return 0;
> +    }
>  
>    /* Look whether there is a RAID superblock. */
>    if (sb.md_magic != GRUB_RAID_SB_MAGIC)

Did you confirm this works?  Has it been committed to upstream CVS?

-- 
Robert Millan

My spam trap is honeypot at aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.




More information about the Pkg-grub-devel mailing list