Gentoo Archives: gentoo-user

From: Jonathan Callen <jcallen@g.o>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: grub -> gummiboot: good
Date: Fri, 30 Jan 2015 01:34:15
Message-Id: 54CADF8D.2040601@gentoo.org
In Reply to: Re: [gentoo-user] grub -> gummiboot: good by "Stefan G. Weichinger"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA512
3
4 On 01/28/2015 06:08 PM, Stefan G. Weichinger wrote:
5 > On 28.01.2015 23:51, Tom H wrote:
6 >
7 >> Why two EFIs?
8 >>
9 >> One of them's unnecessary but if you want to have both, you have
10 >> to have them both in the efibootmgr invocation.
11 >
12 > I don't know why.
13 >
14 > What I did:
15 >
16 > cd /boot rm -fr * gummiboot install grub2-install
17 > --target=x86_64-efi --efi-directory=/boot/efi
18 > --bootloader-id=grub_uefi --recheck
19 >
20 > (and maybe run kerninst to actually put a kernel and its initrd
21 > there)
22 >
23 >
24 > The grub2-install-command was just taken from shell history. It
25 > might be *wrong* ... yes. At least it says it runs without
26 > errors.
27 >
28 >
29 > When I run:
30 >
31 > # grub2-install --target=x86_64-efi --bootloader-id=grub_3
32 > --recheck
33 >
34 > Installing for x86_64-efi platform. grub2-install: error: cannot
35 > find EFI directory.
36 >
37 >
38 >> Can you create an entry for your kernel in 40_custom and test
39 >> it?
40 >>
41 >> Take a look at grub.cfg. I doubt that grub-mkconfig looks for a
42 >> kernel in '/boot/machine_id/kernel_version/' or that it
43 >> recognizes 'kernel' and 'initrd' as valid names for a kernel and
44 >> an initramfs.
45 >
46 > grub2-mkconfig did not detect any kernel, yes.
47 >
48 > That doesn't matter btw ... the reason to have grub2 in parallel is
49 > just the feature to boot iso-files (rescue media ...).
50 >
51 > All this additional grub2-fiddlery is basically learning how to
52 > make it work and getting the convenience of not having to insert a
53 > CD now and then.
54 >
55 > For daily work I am perfectly happy with gummiboot *just* booting
56 > my kernel(s) ... which works already!
57 >
58 > thanks, regards, Stefan
59 >
60 > (leaving now ... late here as mentioned)
61 >
62
63 You have mounted your ESP on /boot, so you need to tell grub *that* is
64 your ESP, not "/boot/efi", like so:
65
66 # grub2-install --target=x86_64-efi --efi-directory=/boot
67
68 Once you do that, everything should pretty much Just Work.
69
70 - --
71 Jonathan Callen
72 -----BEGIN PGP SIGNATURE-----
73 Version: GnuPG v2
74
75 iQIcBAEBCgAGBQJUyt+NAAoJEEIQbvYRB3mgolYP/1g9YlZ/IYaLlKNFOMiEKaIa
76 KrsF+ne2vmITUXtLsVtwCDZNIQyHj6c/Ma7zHpm9Kbzn2OxpKt8dduDNdpA8QLwx
77 E3TM3pV0AfCYRDazH6pZmHRpDc7gVTtz4yQA/uGJyyFynwqJ3LlPYqMzTv6zFUrf
78 lJSBBHuNBU340xAukPf6iEMrNh5CbdT9bzzJGyEPfsGcAM3kDO0DlQC1jf8hgCwr
79 YJsH/WB+EBJ4TR4phzYvAdGOJF04PAwtqTkBjmbyjTwNYy1oaZILu5qjEaHuA+PH
80 Eybba4Dj3/ItIEyG8cy0Qw7fjUXby01OAYtnLUXMhBH7lxSsBFzcSvihxv3bpt+u
81 HvHiOi3M+jWYpfhF1rUEGcK3pF8X7gDiQTaDkERzv+EcDLHG19McZPDb3Gpva6qi
82 oot3O+ky5MQLuG9euhavalEMm2mDCQmSMkS7gVQff5tGUCeUc5fzLKXd1Sywj4Ze
83 tSBctEU1gMpHenl0XO2FJ7OdgkAAeMYKSBkJJhLhYg8iXe7oBC09VmQeoPBvuwAR
84 IMzOYJkD6+FY8pOdXQujRWnM47H9/r0434B+2nLujPQ1fgc/MHpVrv7LGwFMEocU
85 3UloQH4Mh927WNa/F9ilBwl5R0b8vh2hhymj8VENZmsPPB6hV5ZSsvGQ6somL+/r
86 4ULEtTdoNWUrIVVUvMjF
87 =IoH5
88 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] Re: grub -> gummiboot: good "Stefan G. Weichinger" <lists@×××××.at>