mirror of
https://git.proxmox.com/git/grub2
synced 2025-11-06 02:13:32 +00:00
Write marker if core.img was written to filesystem
The Debian bug reporting script includes a warning in this case. Patch-Name: core_in_fs.patch
This commit is contained in:
parent
97f42cd084
commit
b4efdfb9ca
@ -58,6 +58,8 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#define CORE_IMG_IN_FS "setup_left_core_image_in_filesystem"
|
||||
|
||||
/* On SPARC this program fills in various fields inside of the 'boot' and 'core'
|
||||
* image files.
|
||||
*
|
||||
@ -600,6 +602,8 @@ SETUP (const char *dir,
|
||||
|
||||
grub_free (sectors);
|
||||
|
||||
unlink (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS);
|
||||
|
||||
goto finish;
|
||||
}
|
||||
|
||||
@ -642,6 +646,10 @@ unable_to_embed:
|
||||
/* The core image must be put on a filesystem unfortunately. */
|
||||
grub_util_info ("will leave the core image on the filesystem");
|
||||
|
||||
fp = grub_util_fd_open (DEFAULT_DIRECTORY "/" CORE_IMG_IN_FS,
|
||||
GRUB_UTIL_FD_O_WRONLY);
|
||||
grub_util_fd_close (fp);
|
||||
|
||||
grub_util_biosdisk_flush (root_dev->disk);
|
||||
|
||||
/* Clean out the blocklists. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user