On Feb 9, 2008 8:32 PM, Robert Millan <[EMAIL PROTECTED]> wrote:
> On Sat, Feb 09, 2008 at 07:56:16PM +0800, Bean wrote:
> >        if (grub_root_drive == 0xFF)
> >          grub_root_drive = grub_boot_drive;
> >
> > -      if (grub_root_drive >= GRUB_BIOSDISK_MACHINE_CDROM_START)
> > -        grub_sprintf (dev, "(cd%u",
> > -                   grub_root_drive - GRUB_BIOSDISK_MACHINE_CDROM_START);
> > +      if ((grub_root_drive >= GRUB_BIOSDISK_MACHINE_CDROM_START) &&
> > +          (grub_root_drive < GRUB_BIOSDISK_MACHINE_CDROM_END))
> > +     grub_strcpy (dev, "(cd0)");
> >        else
> >          grub_sprintf (dev, "(%cd%u",
> >                     (grub_root_drive & 0x80) ? 'h' : 'f',
>
> I'm confused by this.  Did you mean the opposite?  I.e. when grub_root_drive
> is out of bounds, set dev to cd0.

in biosdisk, cdrom drive is probed from
GRUB_BIOSDISK_MACHINE_CDROM_START to GRUB_BIOSDISK_MACHINE_CDROM_END,
the first one found is treated as (cd0).

-- 
Bean


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to