]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[main] Add the "scriptlet" setting
authorMichael Brown <mcb30@ipxe.org>
Mon, 28 Mar 2011 17:48:48 +0000 (18:48 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 28 Mar 2011 17:50:27 +0000 (18:50 +0100)
commit2f6e7bde772205726369b4d0a98a01f3e0b06c16
tree6d11a2f15489815234ecfd26f6e02097398b4bad
parentb5f5f735c1aa1817e460760b0c2da25e04ef7124
[main] Add the "scriptlet" setting

A scriptlet is a single iPXE command that can be stored in
non-volatile option storage and used to override the default
"autoboot" behaviour without having to reflash the iPXE image.

For example, a scriptlet could contain

    autoboot || reboot

to instruct iPXE to reboot the system if booting fails.

Unlike an embedded image, the presence of a scriptlet does not inhibit
the initial "Press Ctrl-B..." prompt.  This allows the user to recover
from setting a faulty scriptlet.

Originally-implemented-by: Glenn Brown <glenn@myri.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/main.c
src/include/ipxe/dhcp.h