[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Create floppy emulation boot CD with grub-mkimage
From: |
Bean |
Subject: |
Re: [PATCH] Create floppy emulation boot CD with grub-mkimage |
Date: |
Sat, 9 Feb 2008 20:38:34 +0800 |
On Feb 9, 2008 8:32 PM, Robert Millan <address@hidden> 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
Re: [PATCH] Create floppy emulation boot CD with grub-mkimage, Robert Millan, 2008/02/08
- Re: [PATCH] Create floppy emulation boot CD with grub-mkimage, Christian Franke, 2008/02/08
- Re: [PATCH] Create floppy emulation boot CD with grub-mkimage, Christian Franke, 2008/02/09
- Re: [PATCH] Create floppy emulation boot CD with grub-mkimage, Robert Millan, 2008/02/09
- Re: [PATCH] Create floppy emulation boot CD with grub-mkimage, Pavel Roskin, 2008/02/09
- Re: [PATCH] Create floppy emulation boot CD with grub-mkimage, Christian Franke, 2008/02/10
- Re: [PATCH] Create floppy emulation boot CD with grub-mkimage, Robert Millan, 2008/02/10