Skip to content
Snippets Groups Projects
Commit 36f78fd0 authored by Steve McIntyre's avatar Steve McIntyre
Browse files

grub-install: Don't use our grub CD EFI image for --removable

Closes: #1026915. Thanks to Pascal Hambourg for the patch.
parent d6be13a9
No related merge requests found
...@@ -15,6 +15,8 @@ grub2 (2.06-8) UNRELEASED; urgency=medium ...@@ -15,6 +15,8 @@ grub2 (2.06-8) UNRELEASED; urgency=medium
Fixes #845683 Fixes #845683
* grub-install: Don't install the shim fallback program when called * grub-install: Don't install the shim fallback program when called
with --removable. Closes: #1016737 with --removable. Closes: #1016737
* grub-install: Don't use our grub CD EFI image for --removable.
Closes: #1026915. Thanks to Pascal Hambourg for the patch.
-- Steve McIntyre <93sam@debian.org> Thu, 29 Dec 2022 13:36:22 +0000 -- Steve McIntyre <93sam@debian.org> Thu, 29 Dec 2022 13:36:22 +0000
......
...@@ -192,7 +192,7 @@ Index: grub.git/util/grub-install.c ...@@ -192,7 +192,7 @@ Index: grub.git/util/grub-install.c
} }
t = grub_util_path_concat (3, efidir, "EFI", efi_distributor); t = grub_util_path_concat (3, efidir, "EFI", efi_distributor);
free (efidir); free (efidir);
@@ -1375,14 +1378,41 @@ main (int argc, char *argv[]) @@ -1375,14 +1378,38 @@ main (int argc, char *argv[])
} }
} }
...@@ -208,10 +208,7 @@ Index: grub.git/util/grub-install.c ...@@ -208,10 +208,7 @@ Index: grub.git/util/grub-install.c
+ { + {
+ char *dir = xasprintf ("%s-signed", grub_install_source_directory); + char *dir = xasprintf ("%s-signed", grub_install_source_directory);
+ char *signed_image; + char *signed_image;
+ if (removable) + signed_image = xasprintf ("grub%s.efi.signed", efi_suffix);
+ signed_image = xasprintf ("gcd%s.efi.signed", efi_suffix);
+ else
+ signed_image = xasprintf ("grub%s.efi.signed", efi_suffix);
+ efi_signed = grub_util_path_concat (2, dir, signed_image); + efi_signed = grub_util_path_concat (2, dir, signed_image);
+ break; + break;
+ } + }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment