aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/dhcp.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-03-28 18:48:48 +0100
committerMichael Brown <mcb30@ipxe.org>2011-03-28 18:50:27 +0100
commit2f6e7bde772205726369b4d0a98a01f3e0b06c16 (patch)
tree6d11a2f15489815234ecfd26f6e02097398b4bad /src/include/ipxe/dhcp.h
parentb5f5f735c1aa1817e460760b0c2da25e04ef7124 (diff)
downloadipxe-2f6e7bde772205726369b4d0a98a01f3e0b06c16.tar.gz
[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>
Diffstat (limited to 'src/include/ipxe/dhcp.h')
-rw-r--r--src/include/ipxe/dhcp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/ipxe/dhcp.h b/src/include/ipxe/dhcp.h
index 54a85f661..148e3d66f 100644
--- a/src/include/ipxe/dhcp.h
+++ b/src/include/ipxe/dhcp.h
@@ -307,10 +307,17 @@ struct dhcp_client_uuid {
#define DHCP_EB_SKIP_SAN_BOOT DHCP_ENCAP_OPT ( DHCP_EB_ENCAP, 0x09 )
/*
- * Tags in the range 0x10-0x7f are reserved for feature markers
+ * Tags in the range 0x10-0x4f are reserved for feature markers
*
*/
+/** Scriptlet
+ *
+ * If a scriptlet exists, it will be executed in place of the usual
+ * call to autoboot()
+ */
+#define DHCP_EB_SCRIPTLET DHCP_ENCAP_OPT ( DHCP_EB_ENCAP, 0x51 )
+
/** Skip PXE DHCP protocol extensions such as ProxyDHCP
*
* If set to a non-zero value, iPXE will not wait for ProxyDHCP offers