Gentoo Archives: gentoo-user

From: Julian Simioni <julian.simioni@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] Grub2 can't find any commands
Date: Thu, 22 Mar 2012 04:24:55
Message-Id: CADsv-dkCpfKyHnur-=J7fgH3wTR7zGO-4Jy-=u65iBUhtTF-Lw@mail.gmail.com
1 Hi all,
2 I'm working on the exciting and challenging task of installing Gentoo
3 on a new Macbook Pro with grub2 and EFI. I've got things booting, but
4 every time grub complains of many missing commands including search,
5 echo, and most surprisingly '['. It also can't find any modules, and
6 in order to get everything to work I had to specify about 10 modules
7 to be built in using grub2-mkimage. This feels a little suboptimal to
8 me, but I can't figure out where various things need to be for grub to
9 find them happily.
10
11 My partition layout at least is simple since I don't plan on dual booting:
12 /dev/sda1: big root partition using ext4
13 /dev/sda2: 200MB vfat EFI partition, set to bootable (yes this should
14 be sda1: I didn't know you needed an EFI partition until after I had
15 already made the root partition and started installing things. I was
16 able to add this partition later with gparted)
17
18 Of course I'm using GPT, not MBR.
19
20 On /dev/sda2 I've got the grub2 image at /EFI/BOOT/BOOTX64.EFI as is
21 standard, and I have been mounting /dev/sda2 at /boot/efi. I can put
22 either a grub2 image or a 3.3 kernel with EFI stub support at
23 /EFI/BOOT/BOOTX64.EFI and it gets detected just fine, so I'm on the
24 right track.
25
26 I've tried messing with various permutations of the -p parameter to
27 grub2-mkimage, but haven't gotten anywhere. Right now the *.mod and
28 *.lst files from /usr/lib/grub/x86_64-efi/ can be found at both
29 /boot/grub2/x86_64-efi and /boot/efi/EFI/BOOT/. Where is it that they
30 actually should be?
31
32 Thanks,
33 Julian

Replies

Subject Author
Re: [gentoo-user] Grub2 can't find any commands Maxim Wexler <maxim.wexler@×××××.com>