[ipxe-devel] ipxe -> grub2 chainload and parameters

Carlos Alarcon carlos.alarcon at ionide.es
Fri Nov 30 12:43:36 UTC 2012


Hi all,
We are trying to develop a distributed system in the following way:
Hosts will all have a USB pen drive from where they will load ipxe.lkrn.

This ipxe.lkrn is created with a ipxe script (embedded)  which will 
first check if there is network

    * If there is not network it will chainload to grub2


I embedded grub2 as well ( my make command line is: make 
EMBEDDED_IMAGE=config/local/upfile.ipxe,../../core.img bin/ipxe.lkrn)

I would like a way to inject parameters into the grub2 image so in case 
there is network I can change the way I boot from USB using data 
retrieved from network

Is there a way to do it?

Maybe I am doing it wrong from the beginning, I am using grub2 because I 
don't know if I can boot from another partition (and how to do it) when 
running  ipxe.lkrn from an USB


The idea is to have different partitions on same USB. In case There is 
no network I boot the default one in offline_mode.
If there is network I will boot one of them depending of the info 
retrieved via network.



Regards





-- 
Carlos Alarcón.

Tel: 916 244 049 ext: 2002

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20121130/cce4b951/attachment.htm>


More information about the ipxe-devel mailing list