mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-02 15:49:52 -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
|
@ -5,35 +5,3 @@
|
|||
#pragma once
|
||||
|
||||
#define GRUB2_PACKAGE_VERSION "2.06"
|
||||
|
||||
/*
|
||||
* Also include the 'core.img' patch data for distros using a
|
||||
* NONSTANDARD '/boot/grub2/' prefix directory (openSUSE, Gecko, ...)
|
||||
* This is basically a diff of the 'core.img' generated with
|
||||
* 'grub-mkimage -p/boot/grub' vs 'grub-mkimage -p/boot/grub2'
|
||||
*/
|
||||
|
||||
// For GRUB 2.04
|
||||
static const chunk_t grub_204_chunk1_src = { 0x0208, 1, { 0xce } };
|
||||
static const chunk_t grub_204_chunk1_rep = { 0x0208, 1, { 0xcf } };
|
||||
static const chunk_t grub_204_chunk2_src = { 0x7cf8, 6, { 0x63, 0x25, 0x7e, 0x04, 0xf6, 0x14 } };
|
||||
static const chunk_t grub_204_chunk2_rep = { 0x7cf8, 7, { 0x62, 0xdb, 0x77, 0x57, 0x0c, 0x4e, 0x00 } };
|
||||
|
||||
// For GRUB 2.06
|
||||
static const chunk_t grub_206_chunk1_src = { 0x0208, 1, { 0xcf } };
|
||||
static const chunk_t grub_206_chunk1_rep = { 0x0208, 1, { 0xd0 } };
|
||||
static const chunk_t grub_206_chunk2_src = { 0x95f9, 6, { 0xac, 0x1a, 0xc6, 0x4f, 0x45, 0x2c } };
|
||||
static const chunk_t grub_206_chunk2_rep = { 0x95f9, 7, { 0xab, 0xe7, 0xe4, 0x0a, 0x2e, 0x38, 0x00 } };
|
||||
|
||||
const grub_patch_t grub_patch[2] = {
|
||||
{ "2.04", {
|
||||
{ &grub_204_chunk1_src, &grub_204_chunk1_rep },
|
||||
{ &grub_204_chunk2_src, &grub_204_chunk2_rep },
|
||||
}
|
||||
},
|
||||
{ "2.06", {
|
||||
{ &grub_206_chunk1_src, &grub_206_chunk1_rep },
|
||||
{ &grub_206_chunk2_src, &grub_206_chunk2_rep },
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue