summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/init.h
diff options
context:
space:
mode:
authorMichael Brown2011-03-07 23:02:07 +0100
committerMichael Brown2011-03-07 23:28:31 +0100
commitb2332d511807b87bd71cf73acaaf48e671d71c9d (patch)
treefde829da1d96d26c6d1047c0a41cc2aa8558df1c /src/include/ipxe/init.h
parent[main] Remove shell prompt when using an embedded image (diff)
downloadipxe-b2332d511807b87bd71cf73acaaf48e671d71c9d.tar.gz
ipxe-b2332d511807b87bd71cf73acaaf48e671d71c9d.tar.xz
ipxe-b2332d511807b87bd71cf73acaaf48e671d71c9d.zip
[prefix] Allow iPXE's own command line to be executed as a script
Some prefixes (e.g. .lkrn) allow a command line to be passed in to iPXE. At present, this command line is ignored. If a command line is provided, treat it as an embedded script (without an explicit "#!ipxe" magic marker). This allows for patterns of invocation such as title iPXE kernel /boot/ipxe.lkrn dhcp && \ sanboot iscsi:10.0.4.1::::iqn.2010-04.org.ipxe.dolphin:storage Here GRUB is instructed to load ipxe.lkrn with an embedded script equivalent to #!ipxe dhcp sanboot iscsi:10.0.4.1::::iqn.2010-04.org.ipxe.dolphin:storage This can be used to effectively vary the embedded script without having to rebuild ipxe.lkrn. Originally-implemented-by: Dave Hansen <dave@sr71.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/init.h')
-rw-r--r--src/include/ipxe/init.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/init.h b/src/include/ipxe/init.h
index 954cda45..19c5925b 100644
--- a/src/include/ipxe/init.h
+++ b/src/include/ipxe/init.h
@@ -29,6 +29,7 @@ struct init_fn {
#define INIT_SERIAL 02 /**< Serial driver initialisation */
#define INIT_CONSOLE 03 /**< Console initialisation */
#define INIT_NORMAL 04 /**< Normal initialisation */
+#define INIT_LATE 05 /**< Late initialisation */
/** @} */