aboutsummaryrefslogtreecommitdiff
path: root/src/usr
diff options
context:
space:
mode:
authorJoshua Oreman <oremanj@rwcr.net>2009-10-06 19:15:06 -0400
committerMarty Connor <mdc@etherboot.org>2010-01-20 17:23:37 -0500
commitfa4aec8f034f4999cf933161810b96de83ce31a7 (patch)
tree73348c8a175d5b76763d692e662d5179479e976d /src/usr
parent9e9cc8c60ff573e02615889a4b7fa469c42fe425 (diff)
downloadipxe-fa4aec8f034f4999cf933161810b96de83ce31a7.zip
ipxe-fa4aec8f034f4999cf933161810b96de83ce31a7.tar.gz
ipxe-fa4aec8f034f4999cf933161810b96de83ce31a7.tar.bz2
[config] Make PXE stack a compile-time option
For extremely tight space requirements and specific applications, it is sometimes desirable to create gPXE images that cannot provide the PXE API functionality to client programs. Add a configuration header option, PXE_STACK, that can be removed to remove this stack. Also add PXE_MENU to control the PXE boot menu, which most uses of gPXE do not need. Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/autoboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
index b9c1fda..8c4398c 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.c
@@ -151,7 +151,7 @@ static int netboot ( struct net_device *netdev ) {
buf, sizeof ( buf ) );
pxe_discovery_control =
fetch_uintz_setting ( NULL, &pxe_discovery_control_setting );
- if ( ( strcmp ( buf, "PXEClient" ) == 0 ) &&
+ if ( ( strcmp ( buf, "PXEClient" ) == 0 ) && pxe_menu_boot != NULL &&
setting_exists ( NULL, &pxe_boot_menu_setting ) &&
( ! ( ( pxe_discovery_control & PXEBS_SKIP ) &&
setting_exists ( NULL, &filename_setting ) ) ) ) {