[syslinux:elflink] core: Print error message if we don' t load ldlinux.c32

syslinux-bot for Matt Fleming matt.fleming at intel.com
Tue Oct 23 04:09:07 PDT 2012


Commit-ID:  973b41dc30f1174a4b5fdbbe990c8e76a96aac85
Gitweb:     http://www.syslinux.org/commit/973b41dc30f1174a4b5fdbbe990c8e76a96aac85
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Fri, 19 Oct 2012 10:52:44 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Fri, 19 Oct 2012 10:52:44 +0100

core: Print error message if we don't load ldlinux.c32

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 files changed, 2 insertions(+), 0 deletions(-)

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)


More information about the Syslinux-commits mailing list