Fixes #845683
* grub-install: Don't install the shim fallback program when called
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
}
t = grub_util_path_concat (3, efidir, "EFI", efi_distributor);
free (efidir);
-@@ -1375,14 +1378,41 @@ main (int argc, char *argv[])
+@@ -1375,14 +1378,38 @@ main (int argc, char *argv[])
}
}
+ {
+ char *dir = xasprintf ("%s-signed", grub_install_source_directory);
+ char *signed_image;
-+ if (removable)
-+ signed_image = xasprintf ("gcd%s.efi.signed", efi_suffix);
-+ else
-+ signed_image = xasprintf ("grub%s.efi.signed", efi_suffix);
++ signed_image = xasprintf ("grub%s.efi.signed", efi_suffix);
+ efi_signed = grub_util_path_concat (2, dir, signed_image);
+ break;
+ }