[syslinux] [PATCH] mboot: set boot device

H. Peter Anvin hpa at zytor.com
Thu Jul 15 12:09:30 PDT 2010


On 07/15/2010 05:10 AM, Sebastian Herbszt wrote:
> H. Peter Anvin wrote:
>> Isolinux boots in no-emulation (zero offset) *or* in hybrid mode, the
>> latter of which can use a partition!
> 
> What about the following approach?
> 
> Set boot device if
> * SYSLINUX_FS_PXELINUX or
> * SYSLINUX_FS_ISOLINUX and cd_mode == 0 /* El Torito */ or
> * SYSLINUX_FS_SYSLINUX and drive_number < 0x80 /* floppy */
> 
> As soon as some partition detection code appears we will also handle
> those cases
> * SYSLINUX_FS_ISOLINUX and cd_mode != 0 /* Hybrid */
> * SYSLINUX_FS_SYSLINUX and drive_number >= 0x80 /* hard disk */
> 

There is no point in hard-coding assumptions on cd_mode or drive number.
 Just look for a zero offset in the non-pxelinux case.

	-hpa
-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.




More information about the Syslinux mailing list