grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] add part_apple to EFI rescue image to fix missing prefix


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH] add part_apple to EFI rescue image to fix missing prefix
Date: Sat, 11 Jan 2014 15:58:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

On 07.01.2014 19:31, Andrey Borzenkov wrote:
> On Mac rescue image is booted from HFS+ partition, so bootpath looks like
> /ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(3,5d1,ca3,0000000000000000,20,0)/EndEntire
> 
> grub fails to find device for this path because it cannot scan partition
> table. The simplest fix is to add part_apple by default.
> 
> ---
>  util/grub-mkrescue.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/util/grub-mkrescue.c b/util/grub-mkrescue.c
> index 0d03e55..30bb701 100644
> --- a/util/grub-mkrescue.c
> +++ b/util/grub-mkrescue.c
> @@ -316,9 +316,11 @@ make_image_fwdisk_abs (enum grub_install_plat plat,
>    fclose (load_cfg_f);
>  
>    grub_install_push_module ("iso9660");
> +  grub_install_push_module ("part_apple");
>    grub_install_make_image_wrap (source_dirs[plat], "()/boot/grub", output,
>                               0, load_cfg, mkimage_target, 0);
>    grub_install_pop_module ();
> +  grub_install_pop_module ();
This needs to be either limited to the 3 platforms in question
(powerpc-ieee1275, i386-efi, x86_64-efi) or extended to all platforms. I
prefer former.
>  }
>  
>  static int
> 


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]