[syslinux] [PATCH] chain.c32: add support for loading GRUB stage2

Paul Bolle pebolle at tiscali.nl
Mon Jun 28 05:04:03 PDT 2010


On Mon, 2010-06-28 at 13:58 +0200, Paul Bolle wrote:
> On Mon, 2010-06-28 at 03:03 -0700, Gert Hulselmans wrote:
> > +	    ((uint8_t*) data[ndata].data)[0x20a] = (uint8_t)(whichpart - 1);
> 
> 0) This works OK if whichpart is set to non-zero, eg with:
>     chain boot 2 grub=stage2
> 
> This fails however (ie, 0xff/"whole drive" will be used) if whichpart
> isn't yet set, eg with:
>     chain boot grub=stage2

I should have added here that this last command can have the identical
effect as the first command if partition 2 is the SYLINUX filesystem.

(I guess your patch will also do the right thing if the whole drive is
the SYSLINUX filesystem).


Paul




More information about the Syslinux mailing list