[gPXE] Passing commands or a gpxe script from grub to gpxe.lkrm
Dustin Lundquist
dustin at null-ptr.net
Sat Apr 9 15:21:06 EDT 2011
I'm trying to use sanboot to add a boot entry to my grub menu for an iSCSI
volume, but gPXE seems to ignore boot arguments and an initrd image.
Currently I have the following entry in my grub.cnf:
menuentry "Windows 7 gPXE iSCSI" {
insmod raid
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set=root dac3d1e1-6403-4d33-9f31-5f2e5372f88b
echo 'Loading gPXE ...'
linux16 /gpxe.lkrn
echo 'Loading gPXE config ...'
initrd16 /windows7.gpxe
}
And my gPXE script /boot/windows7.gpxe (/boot is a separate file system).
#!gpxe
dhcp net0
sanboot iscsi:192.0.2.10::::iqn.2011-03.com.example:windows-disk
boot
It boots gPXE, but then just tries a standard PXE boot rather than
executing the commands in the script. If I enter the script by hand at the
Ctrl+B prompt it boots Windows 7. I've also tried appending the sanboot
line to the linux16 entry in the grub config.
How can I pass commands from grub to gPXE?
Thanks,
Dustin Lundquist
More information about the gPXE
mailing list