mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
fix a problem that chainloader doesn't report any error, even if it failed.
This commit is contained in:
1 parent
9f4cb39873
commit
47148b669b
2 files changed
+12
No files matched your search
@@ -418,6 +418,12 @@ chainloader_func (char *arg, int flags)
|
||||
{
|
||||
grub_close ();
|
||||
kernel_type = KERNEL_TYPE_NONE;
|
||||
|
||||
/* This below happens, if a file whose size is less than 512 bytes
|
||||
is loaded. */
|
||||
if (errnum == ERR_NONE)
|
||||
errnum = ERR_EXEC_FORMAT;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user