core: Print error message if we don't load ldlinux.c32
authorMatt Fleming <matt.fleming@intel.com>
Fri, 19 Oct 2012 09:52:44 +0000 (10:52 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 19 Oct 2012 09:52:44 +0000 (10:52 +0100)
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@intel.com>
core/elflink/load_env32.c

index 8e124a0..49c5989 100644 (file)
@@ -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)