[syslinux] [PATCH 1/3] core: Print error message if we don't load ldlinux.c32

Matt Fleming matt at console-pimps.org
Fri Oct 19 08:11:10 PDT 2012


From: Matt Fleming <matt.fleming at intel.com>

If the user forgot to install ldlinux.c32 they're greeted with the
following unhelpful message,

	  Boot failed: press a key to retry, or wait for reset...

We should explicitly tell the user that the reason for the boot
failing is that ldlinux.c32 could not be loaded.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>
---
 core/elflink/load_env32.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c
index 8e124a0..49c5989 100644
--- a/core/elflink/load_env32.c
+++ b/core/elflink/load_env32.c
@@ -141,6 +141,8 @@ void load_env32(com32sys_t * regs __unused)
 
 	if (!search_dirs(&fp->i.fd, search_directories, filenames, realname))
 		start_ldlinux(argv);
+
+	writestr("\nFailed to load ldlinux.c32");
 }
 
 int create_args_and_load(char *cmdline)
-- 
1.7.11.7




More information about the Syslinux mailing list