Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] UEFI-fails to boot
Date: Thu, 25 Jan 2018 10:55:08
I have bought me a shiny new Supermicro X10DRi-T motherboard with two
Xenon-E5-2620-v3 CPUs for use as a server.

I have configured the MB for UEFI-mode only and my rescuecd-USB-key
boots find in UEFI-mode.

Following the Handbook and the "EFI System Partition" handbook I have
created the following GPT-disklayout:

root@sysresccd /root % parted /dev/sda print
Model: ATA ST1000DX002-2DV1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  3146kB  2097kB  fat32           grub  bios_grub
 2      3146kB  137MB   134MB   ext2            boot  boot, esp
 3      137MB   4429MB  4292MB  linux-swap(v1)  swap
 4      4429MB  5503MB  1074MB                  root
 5      5503MB  1000GB  995GB                   vg

Partition-1 was created like this: mkfs.fat -F 32 -n efi-boot /dev/sda1
Partition-2 was created like this: mkfs.ext2 -T small /dev/sda2

GRUB_PLATFORMS was set to "efi-64" in make.conf before emerging grub:2

/boot and /boot/efi is mounted like this
# mount | grep boot
/dev/sda2 on /boot type ext2 (rw,relatime,errors=continue,user_xattr,acl)
/dev/sda1 on /boot/efi type vfat

I had to remount /sys/firmware/efi/efivars in rw-mode, otherwise
grub-install would complain.

grub-install was run like this
"grub-install --target=x86_64-efi --efi-directory=/boot/efi"

And "grub-mkconfig -o /boot/grub/grub.cfg" has been run without any errors.

efibootmgr shows my gentoo as the first entry
# efibootmgr
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0003
Boot0000  gentoo
Boot0001  Hard Drive
Boot0002  Network Card
Boot0003  UEFI: Built-in EFI Shell

But when I boot without the USB-key inserted I always "lands" in the
Built-in EFI Shell - NO sign of GRUB.

Any suggestions where I have gone wrong?

Dan Johansson,
This message is printed on 100% recycled electrons!


File name MIME type
smime.p7s application/pkcs7-signature


Subject Author
Re: [gentoo-user] UEFI-fails to boot Wols Lists <antlists@××××××××××××.uk>
Re: [gentoo-user] UEFI-fails to boot Mick <michaelkintzios@×××××.com>