mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2026-04-11 04:31:27 -07:00
Report if UEFI is missing (can't read variables)
This commit is contained in:
@@ -966,7 +966,14 @@ public class Setup {
|
||||
|
||||
InitEspPath();
|
||||
InitEspInfo();
|
||||
var bootLog = $"\n--- BOOT LOG START ---\n{Efi.GetHackBGRTLog()}\n--- BOOT LOG END ---";
|
||||
Func<string> tryGetBootLog = () => {
|
||||
try {
|
||||
return $"\n--- BOOT LOG START ---\n{Efi.GetHackBGRTLog()}\n--- BOOT LOG END ---";
|
||||
} catch (NotImplementedException e) {
|
||||
throw new SetupException($"Looks like you're not booting in UEFI mode. ({e.Message})");
|
||||
}
|
||||
};
|
||||
var bootLog = tryGetBootLog();
|
||||
Setup.Log(bootLog);
|
||||
Efi.LogBGRT();
|
||||
EfiBootEntries.TryLogEntries();
|
||||
|
||||
Reference in New Issue
Block a user