PXELINUX: Print an error message if the config file is not found syslinux-3.20-pre19
authorH. Peter Anvin <hpa@zytor.com>
Tue, 22 Aug 2006 00:46:08 +0000 (17:46 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 22 Aug 2006 00:46:08 +0000 (17:46 -0700)
pxelinux.asm

index c49db37..ac986d3 100644 (file)
@@ -838,6 +838,8 @@ config_scan:
                dec di
                loop .tryagain
 
+               mov si,err_noconfig
+               call writestr
                jmp kaboom
 
 .success:
@@ -2352,6 +2354,7 @@ bailmsg           equ err_bootfailed
 err_nopxe      db "No !PXE or PXENV+ API found; we're dead...", CR, LF, 0
 err_pxefailed  db 'PXE API call failed, error ', 0
 err_udpinit    db 'Failed to initialize UDP stack', CR, LF, 0
+err_noconfig   db 'Unable to locate configuration file', CR, LF, 0
 err_oldtftp    db 'TFTP server does not support the tsize option', CR, LF, 0
 found_pxenv    db 'Found PXENV+ structure', CR, LF, 0
 using_pxenv_msg db 'Old PXE API detected, using PXENV+ structure', CR, LF, 0