grub4dos icon indicating copy to clipboard operation
grub4dos copied to clipboard

how to write my ipxegrldr.ipxe script

Open xue-blood opened this issue 5 years ago • 3 comments

I boot ipxegrldr from pxe server, howerver it can't found (pd)/menu.lst file. But I could load config file from http source. Can I write my ipxe script ? Thanks a lot.

xue-blood avatar Jul 23 '19 12:07 xue-blood

But I could load config file from http source. Success is good.

Can I write my ipxe script ? Don't get it. Write for yourself, no problem.

yaya2007 avatar Jul 25 '19 01:07 yaya2007

Yes I found a way. Instead of using ipxegrldr, I boot it in this order: pxe -> local grldr -> ipxe.lkrn -> ipxe grldr

xue-blood avatar Jul 25 '19 06:07 xue-blood

I can load grub4dos from ipxe with this ipxe script:

#!ipxe
chain /grub4dos/0.4.6a/grldr keeppxe --config-file="configfile (pd)/grub4dos/menu.lst"

You can vall ipxe from Grub4Dos with:

title iPXE loading menu.ipxe
pxe keep
kernel (pd)/ipxe.lkrn
initrd (pd)/default.ipxe

I tried the same from pxelinux.0, but i cannot make it work, it load grldr but not the menu, but pxe stack in there... it cannot load the loal menu because it only look for it in 3 specific locations from the executable: menu.lst, boot/grub/menu.lst, grub/menu.lst, -c and -p are not taken into account...

LABEL grub4dos
    KERNEL pxechn.c32 ::grub4dos/0.4.6a/grldr -c xxxx.lst -S
	APPEND keeppxe --config-file="reboot"

I did have problems with relative path too there...

ZeroQI avatar Jun 22 '24 14:06 ZeroQI