Gentoo Archives: gentoo-dev

From: Patrick McLean <chutzpah@g.o>
To: Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] grub-2 configuration
Date: Fri, 28 Oct 2016 22:02:17
Message-Id: 20161028150156.13919a64@patrickm
In Reply to: Re: [gentoo-dev] grub-2 configuration by Joakim Tjernlund
1 On Fri, 28 Oct 2016 10:56:08 +0000
2 Joakim Tjernlund <Joakim.Tjernlund@××××××××.com> wrote:
3
4 > On Thu, 2016-10-20 at 11:03 -0400, Tom H wrote:
5 > > On Wed, Oct 19, 2016 at 4:43 PM, Joakim Tjernlund
6 > > <Joakim.Tjernlund@××××××××.com> wrote:
7 > > >
8 > > > On Wed, 2016-10-19 at 15:21 -0400, Tom H wrote:
9 > > > >
10 > > > >
11 > > > > but it looks like, unlike for grub-legacy, you need a grub
12 > > > > config file ("/boot/grub{,2}/grub.cfg") to exist.
13 > > >
14 > > > That is reasonable, to create a new entry one needs to copy the
15 > > > previous and replace the kernel.
16 > > >
17 > > > Would be nice if someone could confirm this though.
18 > >
19 > > if [[ -z "${GRUB_CONF}" ]]; then
20 > > print_error 1 "Error! Grub2 configuration file does not exist,
21 > > please ensure grub2 is correctly setup first."
22 > > return 0
23 > > fi
24 >
25 >
26 > Tried to make grub2 and EFI work on a HP Skylake laptop but failed.
27 > This laptop PXE boots linux during install in BIOS mode so no EFI
28 > vars etc. available when installing grub2. Is this an impossible
29 > combo? Do I need to EFI boot in order to install grub2 efi?
30 >
31 >  Jocke
32
33 You need to be booted in EFI mode to be able to access the EFI vars and
34 install grub in EFI mode. If you are booted in legacy mode, you have to
35 use grub's i386-pc mode.