Skip the workaround in a44b9290 if skipping shim

This commit is contained in:
Lauri Kenttä
2024-04-20 21:58:01 +03:00
parent 6f94f6bc28
commit 8e6466990a

View File

@@ -398,10 +398,10 @@ public class Setup {
if (!SkipShim) { if (!SkipShim) {
InstallFile(shimSource, loaderDest); InstallFile(shimSource, loaderDest);
InstallFile(mmSource, $"mm{EfiArch}.efi"); InstallFile(mmSource, $"mm{EfiArch}.efi");
InstallFile(loaderSource, "\u4957\u444e\u574f\u0053\u0058"); // bytes "WINDOWS\0X\0" as UTF-16
loaderDest = $"grub{EfiArch}.efi"; loaderDest = $"grub{EfiArch}.efi";
} }
InstallFile(loaderSource, loaderDest); InstallFile(loaderSource, loaderDest);
InstallFile(loaderSource, "\u4957\u444e\u574f\u0053\u0058"); // bytes "WINDOWS\0X\0" as UTF-16
if (LoaderIsSigned) { if (LoaderIsSigned) {
InstallFile("certificate.cer"); InstallFile("certificate.cer");
} }