mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 14:58:26 -04:00
[grub] add Grub 2.0 support
* Also moves secondary Grub boot record as a resource * Also fix a typo in README.txt and update signtool path * Closes #340
This commit is contained in:
parent
306191fb85
commit
b3947fc026
17 changed files with 105 additions and 758 deletions
|
@ -62,6 +62,7 @@ static const char* grldr_name = "grldr";
|
|||
static const char* ldlinux_name = "ldlinux.sys";
|
||||
static const char* ldlinux_c32 = "ldlinux.c32";
|
||||
static const char* efi_dirname = "/efi/boot";
|
||||
static const char* grub_dirname = "/boot/grub"; // NB: We don't support nonstandard config dir such as AROS' "/boot/pc/grub/"
|
||||
static const char* syslinux_cfg[] = { "isolinux.cfg", "syslinux.cfg", "extlinux.conf"};
|
||||
static const char dot_isolinux_bin[] = ".\\isolinux.bin";
|
||||
static const char* isolinux_bin = &dot_isolinux_bin[2];
|
||||
|
@ -166,6 +167,13 @@ static BOOL check_iso_props(const char* psz_dirname, BOOL* is_syslinux_cfg, BOOL
|
|||
if (safe_stricmp(psz_dirname, efi_dirname) == 0)
|
||||
iso_report.has_efi = TRUE;
|
||||
|
||||
// Check for the Grub boot directory
|
||||
// TODO: If there is a need to point to a different config file, as we do with Syslinux,
|
||||
// see http://www.gnu.org/software/grub/manual/grub.html#Embedded-configuration
|
||||
// However, this allegedly requires normal.mod (105 KB!) to be in core.img...
|
||||
if (safe_stricmp(psz_dirname, grub_dirname) == 0)
|
||||
iso_report.has_grub2 = TRUE;
|
||||
|
||||
// Check for PE (XP) specific files in "/i386" or "/minint"
|
||||
for (i=0; i<ARRAYSIZE(pe_dirname); i++)
|
||||
if (safe_stricmp(psz_dirname, pe_dirname[i]) == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue