This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
embed [2011/12/02 21:42] mcb30 |
embed [2013/05/15 20:50] mcb30 |
||
---|---|---|---|
Line 32: | Line 32: | ||
| | ||
title iPXE | title iPXE | ||
- | kernel (hd0,0)/ipxe.lkrn dhcp \&\& chain http://bootserver/boot.php | + | kernel (hd0,0)/ipxe.lkrn dhcp && chain http://bootserver/boot.php |
This uses a standard version of the iPXE binary ''ipxe.lkrn''. You can change the embedded script simply by editing the GRUB configuration file, with no need to rebuild the iPXE binary. | This uses a standard version of the iPXE binary ''ipxe.lkrn''. You can change the embedded script simply by editing the GRUB configuration file, with no need to rebuild the iPXE binary. | ||
Line 38: | Line 38: | ||
This method works only with iPXE binary formats that support a command line, such as ''.lkrn''. | This method works only with iPXE binary formats that support a command line, such as ''.lkrn''. | ||
- | Note that you may need to escape some special characters (such as the "''\&\&''" in the above example) to allow them to be passed through to iPXE. | + | Note that you may need to escape some special characters to allow them to be passed through to iPXE. |
{{ :clipart:disk.jpeg?240x186|A disk}} | {{ :clipart:disk.jpeg?240x186|A disk}} | ||
Line 61: | Line 61: | ||
===== The "Press Ctrl-B" prompt ===== | ===== The "Press Ctrl-B" prompt ===== | ||
- | When you embed a script, you will no longer see the "Press Ctrl-B for the iPXE command line" prompt at startup or if booting fails. | + | When you embed a script, you will no longer see the "Press Ctrl-B for the iPXE command line" prompt at startup or if booting fails.((If you are using an iPXE ROM, then you will still see the initial "Press Ctrl-B to configure iPXE" prompt that appears during the power-on self-tests (POST). If you want to disable this initial prompt, you can do so by editing the file ''config/general.h'' to include the line:<code> #define BANNER_TIMEOUT 0</code>)) |
If you would like to provide the user an opportunity to access the iPXE command line, then you can provide your own replacement prompt using the ''[[:cmd:prompt]]'' command. For example: | If you would like to provide the user an opportunity to access the iPXE command line, then you can provide your own replacement prompt using the ''[[:cmd:prompt]]'' command. For example: | ||
prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE command line... && shell || | prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE command line... && shell || | ||
+ | |||
+ | {{ :clipart:bootrom.jpeg?120x96 |A boot ROM}} | ||
+ | |||