[gPXE] [gPXE-devel] gPXE Feature Request: assigning custom commandstoexecute batch files
Shao Miller
Shao.Miller at yrdsb.edu.on.ca
Mon Feb 8 00:54:56 EST 2010
Tal Aloni wrote:
> ...(my goal is to boot one of many predefined OSes with a single and
> short command line)...
The only other thing I can think of is a bit ugly, but would make for
short commands.
#!gpxe
set sanboot_cmd sanboot
set win7_san iscsi:192.168.0.100::::foo:win7
set winxp_san iscsi:192.168.0.100::::bar:winxp
set win7:hex ${sanboot_cmd:hex}:20:${win7_san:hex}
set winxp:hex ${sanboot_cmd:hex}:20:${winxp_san:hex}
echo Win7 command:
show win7
echo WinXP command:
show winxp
Then you would have glued the relevant portions together with a space
character and you could then do:
gPXE> ${win7}
or
gPXE> ${winxp}
I carbon-copied the gPXE general discussion mailing-list instead of the
developers' mailing-list. I hope you don't mind.
Disclaimer: All claims and opinions are solely those of myself and do
not and should not be perceived as representing the Etherboot nor the
gPXE projects in any way. Thank you for your understanding.
- Shao Miller
More information about the gPXE
mailing list