updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / efibootmgr-git / efibootmgr_default_to_grub2.patch
blob1a1b3c69f59d3f29f04a8f0c384259bbb1e74961
1 diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
2 index 199af39..3826e03 100644
3 --- a/src/efibootmgr/efibootmgr.c
4 +++ b/src/efibootmgr/efibootmgr.c
5 @@ -18,7 +18,7 @@
6 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
9 - This must tie the EFI_DEVICE_PATH to /boot/efi/elilo.efi
10 + This must tie the EFI_DEVICE_PATH to /boot/efi/EFI/grub/grub.efi
11 The EFI_DEVICE_PATH will look something like:
12 ACPI device path, length 12 bytes
13 Hardware Device Path, PCI, length 6 bytes
14 @@ -26,7 +26,7 @@
15 Media Device Path, Hard Drive, partition XX, length 30 bytes
16 Media Device Path, File Path, length ??
17 End of Hardware Device Path, length 4
18 - Arguments passed to elilo, as UCS-2 characters, length ??
19 + Arguments passed to grub2, as UCS-2 characters, length ??
23 @@ -780,8 +780,8 @@ usage()
24 printf("\t-g | --gpt force disk with invalid PMBR to be treated as GPT\n");
25 printf("\t-H | --acpi_hid XXXX set the ACPI HID (used with -i)\n");
26 printf("\t-i | --iface name create a netboot entry for the named interface\n");
27 - printf("\t-l | --loader name (defaults to \\elilo.efi)\n");
28 - printf("\t-L | --label label Boot manager display label (defaults to \"Linux\")\n");
29 + printf("\t-l | --loader name (defaults to \\EFI\\grub\\grub.efi)\n");
30 + printf("\t-L | --label label Boot manager display label (defaults to \"GRUB2\")\n");
31 printf("\t-n | --bootnext XXXX set BootNext to XXXX (hex)\n");
32 printf("\t-N | --delete-bootnext delete BootNext\n");
33 printf("\t-o | --bootorder XXXX,YYYY,ZZZZ,... explicitly set BootOrder (hex)\n");
34 @@ -808,8 +808,8 @@ set_default_opts()
35 opts.active = -1; /* Don't set it */
36 opts.timeout = -1; /* Don't set it */
37 opts.edd10_devicenum = 0x80;
38 - opts.loader = "\\elilo.efi";
39 - opts.label = "Linux";
40 + opts.loader = "\\EFI\\grub\\grub.efi";
41 + opts.label = "GRUB2";
42 opts.disk = "/dev/sda";
43 opts.iface = NULL;
44 opts.part = 1;