grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage


From: Robert Millan
Subject: Re: [PATCH] Create floppy emulation boot CD with grub-mkimage
Date: Sat, 9 Feb 2008 13:32:30 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

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.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]