[ipxe-devel] Command line disabled when embedding a script
Michael Brown
mbrown at fensystems.co.uk
Thu May 26 15:20:33 UTC 2011
On Thursday 26 May 2011 15:53:39 Nicolas Bourbaki wrote:
> Is there a way not to disable the command-line when embedding a script
> inside the ipxe binary ?
>
> Whenever you build using the following:
>
> make EMBEDDED_IMAGE=<path-to-script>
>
> the command line gets disabled which can be annoying when you try to
> debug things.
You can use the "shell" command to enter an interactive shell from within the
script. For example:
#!ipxe
dhcp || shell # Drop to shell if DHCP fails
As Shao mentioned, you can also use the "prompt" command
(http://ipxe.org/cmd/prompt) to emulate the standard "Press Ctrl-B" behaviour.
Michael
More information about the ipxe-devel
mailing list