Grub EFI fallback - patches for review

Ian Campbell ijc at hellion.org.uk
Tue Dec 2 08:36:31 UTC 2014


On Mon, 2014-12-01 at 13:57 +0000, Steve McIntyre wrote:

Starting with grub-install-fallback.patch:

> >From e384e597914b6e1b1dcbf96ef6782cf9bcc2313b Mon Sep 17 00:00:00 2001
>  debian/patches/grub-install-extra-removable.patch | 115 ++++++++++++++++++++++

Could you send this to grub-devel at gnu.org? Or at least provide a commit
log for the upstream bit inline in the patch for whoever does end up
forwarding it.

> +@@ -829,6 +838,27 @@ fill_core_services (const char *core_ser
> +   free (sysv_plist);
> + }
> + 
> ++static void
> ++also_install_removable(const char *src, const char *base_efidir, const char *efi_suffix_upper)
> ++{
> ++  char *efi_file = NULL;
> ++  char *dst = NULL;
> ++  char *dir = NULL;
> ++              
> ++  if (!efi_suffix_upper)
> ++    grub_util_error ("%s", _("You've found a bug"));

There are one or two of these in the upstream code base already, but it
is a bit unfriendly to the bug-reported/triagger.

I see an existing instance of
        _("you found a bug ... (%s:%d)\n"), file, line)
which is a bit nicer at least. Plain old assert() sees some usage too.

The Debian-specific bits all look sensible to me, FWIW. There will be a
minor conflict with the patches in #770412 but nothing insurmountable.

> [...]
> + also depend on this path. If so, uou will need to ensure that GRUB is

Typo: "uou".

Ian.




More information about the Pkg-grub-devel mailing list