aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-10-19 10:52:44 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-10-19 10:52:44 +0100
commit973b41dc30f1174a4b5fdbbe990c8e76a96aac85 (patch)
tree02a0df59315fdfb43b3618176b7d5c4a2f377e29
parentbda54cb680676bffa731394096956f5d10fbcfaf (diff)
downloadsyslinux-973b41dc30f1174a4b5fdbbe990c8e76a96aac85.tar.gz
syslinux-973b41dc30f1174a4b5fdbbe990c8e76a96aac85.tar.xz
syslinux-973b41dc30f1174a4b5fdbbe990c8e76a96aac85.zip
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@intel.com>
-rw-r--r--core/elflink/load_env32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c
index 8e124a0e..49c5989c 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)