[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:
Pete Batard 2015-03-17 01:18:09 +00:00
parent 66edd53b2c
commit ee5af9f8fc
4 changed files with 59 additions and 53 deletions

View file

@ -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);