]> git.proxmox.com Git - grub2.git/commitdiff
2008-02-10 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Sun, 10 Feb 2008 17:05:10 +0000 (17:05 +0000)
committerrobertmh <robertmh@localhost>
Sun, 10 Feb 2008 17:05:10 +0000 (17:05 +0000)
        * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'.  Call
        grub_print_error() instead.  This will let user know why we're entering
        rescue mode.
        Based on suggestions from Sam Morris.

ChangeLog
kern/main.c

index 586cc1dc8a19ceae326eb3f980e9195588080731..1288cfe1b939be4bc4badcded9d4587f1a90cd91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-10  Robert Millan  <rmh@aybabtu.com>
+
+       * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'.  Call
+       grub_print_error() instead.  This will let user know why we're entering
+       rescue mode.
+       Based on suggestions from Sam Morris.
+
 2008-02-10  Alexandre Boeglin  <alex@boeglin.org>
 
        * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
index 2ecccc21adf773775bcb10ffbd7cfcd9eadc0de7..09de03ade05a0271e58443053413b3fb2a026759 100644 (file)
@@ -102,8 +102,8 @@ grub_load_normal_mode (void)
   /* Load the module.  */
   grub_dl_load ("normal");
   
-  /* Ignore any error, because we have the rescue mode anyway.  */
-  grub_errno = GRUB_ERR_NONE;
+  /* Something went wrong.  Print errors here to let user know why we're entering rescue mode.  */
+  grub_print_error ();
 }
 
 /* The main routine.  */