mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-02 07:39:54 -04:00
[grub] force server download for nonstandard GRUB (Fedora 37, openSUSE Live, GeckoLinux)
* This reverts most of 3528ca773d
in order to download 'core.img' from our server instead of patching it.
* Also solve the issue of downloading a custom 'core.img' for Fedora 37, that introduced
a new 'grub_debug_is_enabled' symbol without altering their GRUB version string.
* This is accomplished by doing what the distro maintainers should have done on their
own, by appending a custom suffix to the GRUB version string.
This commit is contained in:
parent
8814944c35
commit
fcae51a446
6 changed files with 48 additions and 125 deletions
19
src/rufus.h
19
src/rufus.h
|
@ -398,7 +398,7 @@ typedef struct {
|
|||
uint16_t sl_version; // Syslinux/Isolinux version
|
||||
char sl_version_str[12];
|
||||
char sl_version_ext[32];
|
||||
char grub2_version[32];
|
||||
char grub2_version[64];
|
||||
} RUFUS_IMG_REPORT;
|
||||
|
||||
/* Isolate the Syslinux version numbers */
|
||||
|
@ -693,23 +693,6 @@ extern void StrArrayClear(StrArray* arr);
|
|||
extern void StrArrayDestroy(StrArray* arr);
|
||||
#define IsStrArrayEmpty(arr) (arr.Index == 0)
|
||||
|
||||
/* Patch structs for GRUB */
|
||||
typedef struct {
|
||||
const uint32_t offset;
|
||||
const uint32_t size;
|
||||
const uint8_t data[];
|
||||
} chunk_t;
|
||||
|
||||
typedef struct {
|
||||
const chunk_t* src;
|
||||
const chunk_t* rep;
|
||||
} patch_t;
|
||||
|
||||
typedef struct {
|
||||
const char* version;
|
||||
const patch_t patch[2];
|
||||
} grub_patch_t;
|
||||
|
||||
/*
|
||||
* typedefs for the function prototypes. Use the something like:
|
||||
* PF_DECL(FormatEx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue