summaryrefslogtreecommitdiffstats
path: root/src/config/general.h
diff options
context:
space:
mode:
authorAlex Williamson2014-02-26 00:33:08 +0100
committerMichael Brown2014-03-03 14:09:25 +0100
commit27d1b40ee961d0910576a094a71dea1211254776 (patch)
tree316e8838adaa4b717832670bc77f7a50edf8a4c6 /src/config/general.h
parent[cmdline] Add the "ipstat" command (diff)
downloadipxe-27d1b40ee961d0910576a094a71dea1211254776.tar.gz
ipxe-27d1b40ee961d0910576a094a71dea1211254776.tar.xz
ipxe-27d1b40ee961d0910576a094a71dea1211254776.zip
[romprefix] Allow ROM banner timeout to be configured independently
iPXE currently prints a "Press Ctrl-B" banner twice: once when the ROM is first called for initialisation and again if we attempt to boot from the ROM. This slows boot, especially when the NIC is not the primary boot device. Tools such as libguestfs make use of QEMU VMs for performing maintenance on disk images and may make use of NICs in the VM for network support. If iPXE introduces a static init-time delay, that directly translates to increased runtime for the tools. Fix by allowing the ROM banner timeout to be configured independently of the main banner timeout. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config/general.h')
-rw-r--r--src/config/general.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/config/general.h b/src/config/general.h
index a714a0af..589798fb 100644
--- a/src/config/general.h
+++ b/src/config/general.h
@@ -28,11 +28,22 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define PRODUCT_SHORT_NAME "iPXE"
/*
- * Timer configuration
- *
+ * Banner timeout configuration
+ *
+ * This controls the timeout for the "Press Ctrl-B for the iPXE
+ * command line" banner displayed when iPXE starts up. The value is
+ * specified in tenths of a second for which the banner should appear.
+ * A value of 0 disables the banner.
+ *
+ * ROM_BANNER_TIMEOUT controls the "Press Ctrl-B to configure iPXE"
+ * banner displayed only by ROM builds of iPXE during POST. This
+ * defaults to being twice the length of BANNER_TIMEOUT, to allow for
+ * BIOSes that switch video modes immediately before calling the
+ * initialisation vector, thus rendering the banner almost invisible
+ * to the user.
*/
-#define BANNER_TIMEOUT 20 /* Tenths of a second for which the shell
- banner should appear */
+#define BANNER_TIMEOUT 20
+#define ROM_BANNER_TIMEOUT ( 2 * BANNER_TIMEOUT )
/*
* Network protocols