mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 23:08:26 -04:00
[grub] disable support for ISOs that don't report a proper GRUB version
* Also update localization for supported boot methods * Closes #467
This commit is contained in:
parent
66edd53b2c
commit
ee5af9f8fc
4 changed files with 59 additions and 53 deletions
10
src/iso.c
10
src/iso.c
|
@ -583,6 +583,10 @@ void GetGrubVersion(char* buf, size_t buf_size)
|
|||
*p = '_';
|
||||
}
|
||||
}
|
||||
// <Shakes fist angrily> "KASPERSKYYYYYY!!!..." (https://github.com/pbatard/rufus/issues/467)
|
||||
// But seriously, these guys should know better than "security" through obscurity...
|
||||
if (iso_report.grub2_version[0] == '0')
|
||||
iso_report.grub2_version[0] = 0;
|
||||
}
|
||||
|
||||
BOOL ExtractISO(const char* src_iso, const char* dest_dir, BOOL scan)
|
||||
|
@ -787,8 +791,10 @@ out:
|
|||
}
|
||||
if (iso_report.grub2_version[0] != 0)
|
||||
uprintf("Detected Grub version: %s", iso_report.grub2_version);
|
||||
else
|
||||
uprintf("Could not detect Grub2 version");
|
||||
else {
|
||||
uprintf("Could not detect Grub version");
|
||||
iso_report.has_grub2 = FALSE;
|
||||
}
|
||||
}
|
||||
StrArrayDestroy(&config_path);
|
||||
StrArrayDestroy(&isolinux_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue