Gentoo Archives: gentoo-user

From: Jeremi Piotrowski <jeremi.piotrowski@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't get any boot method working
Date: Fri, 25 Mar 2016 19:38:21
Message-Id: 20160325193804.GA26042@gentoo-tp.home
In Reply to: [gentoo-user] Can't get any boot method working by Dan Douglas
1 On Fri, Mar 25, 2016 at 04:31:11PM +0000, Dan Douglas wrote:
2 >
3 > grub2-mkconfig generates no menu entries. Do I need anything generated
4 > by /etc/grub.d/00_header? That output looks like garbage.
5 >
6
7 You are better off not removing the header.
8
9 Are you running grub2-mkconfig from the chroot? The kernel+initramfs
10 should be located at /boot. In the case of btrfs you can make it a
11 subvolume but at the time of running grub2-mkconfig you should be chrooted
12 into your root subvolume and your kernel has to be at /boot.
13
14
15 > The only real relevant configuration in /etc/default/grub should be correct.
16 >
17 > GRUB_CMDLINE_LINUX="root=UUID=f0373f0c-3798-4965-a845-b1b94cc14731
18 > rootfstype=btrfs
19 > rootflags=rw,noatime,compress=zlib,space_cache,subvol=rootfs"
20
21 From what I can remember you don't need any of that - if anything would be
22 relevant it's subvol=rootfs but grub should be able to figure that out.
23
24
25 > grub2-install also fails:
26 >
27 > # grub2-install --target=x86_64-efi /dev/sda
28 > Installing for x86_64-efi platform.
29 > grub2-install: error: cannot find EFI directory.
30 >
31 > What EFI directory? The one I created under /boot?
32 >
33
34 /dev/sda1 is your EFI partition, formatted as vfat. You can have it
35 mounted under /boot or under /boot/efi (I recommend the latter). Install
36 like this
37
38 # grub2-install --target=x86_64-efi --efi-directory=/boot/efi
39
40
41 You can also use dracut to build an uefi executable that includes your
42 kernel, the kernel commandline and the initramfs.
43
44 # dracut --uefi