Update Mac code to match new register_efi prototype.
This commit is contained in:
parent
b8765fa082
commit
d218ec9738
2 changed files with 5 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
Update Mac code to match new register_efi prototype.
|
||||||
|
|
||||||
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Implement better integration with Mac firmware.
|
Implement better integration with Mac firmware.
|
||||||
|
|
|
@ -1811,13 +1811,8 @@ main (int argc, char *argv[])
|
||||||
bless (ins_dev, boot_efi, 1);
|
bless (ins_dev, boot_efi, 1);
|
||||||
if (!removable && update_nvram)
|
if (!removable && update_nvram)
|
||||||
{
|
{
|
||||||
char * efidir_disk;
|
|
||||||
int efidir_part;
|
|
||||||
|
|
||||||
/* Try to make this image bootable using the EFI Boot Manager, if available. */
|
/* Try to make this image bootable using the EFI Boot Manager, if available. */
|
||||||
efidir_disk = grub_util_get_os_disk (efidir_device_names[0]);
|
grub_install_register_efi (efidir_grub_dev,
|
||||||
efidir_part = efidir_grub_dev->disk->partition ? efidir_grub_dev->disk->partition->number + 1 : 1;
|
|
||||||
grub_install_register_efi (efidir_disk, efidir_part,
|
|
||||||
"\\System\\Library\\CoreServices",
|
"\\System\\Library\\CoreServices",
|
||||||
efi_distributor);
|
efi_distributor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue