2009-11-11 Felix Zielcke <fzielcke@z-51.de>
* util/grub-probe.c (probe): Abort with an error if file can't be opened via GRUB facilities.
This commit is contained in:
parent
cdfc5ad1b3
commit
76b383bbbe
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-11-11 Felix Zielcke <fzielcke@z-51.de>
|
||||
|
||||
* util/grub-probe.c (probe): Abort with an error if file can't be
|
||||
opened via GRUB facilities.
|
||||
|
||||
2009-11-11 Felix Zielcke <fzielcke@z-51.de>
|
||||
|
||||
* util/i386/pc/grub-setup.c (setup): Make core.img path relative
|
||||
|
|
|
@ -253,6 +253,8 @@ probe (const char *path, char *device_name)
|
|||
free (rel_path);
|
||||
grub_util_info ("reading %s via GRUB facilities", grub_path);
|
||||
file = grub_file_open (grub_path);
|
||||
if (! file)
|
||||
grub_util_error ("can not open %s via GRUB facilities", grub_path);
|
||||
filebuf_via_grub = xmalloc (file->size);
|
||||
grub_file_read (file, filebuf_via_grub, file->size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue