[lfs-support] Grub2 won't boot new UEFI LFS build

jacob jacob at cellsheet.me
Sat Oct 29 12:28:55 PDT 2016

Hello, I've recently completed an LFS build using GRUB-2.03~beta, and 
I've installed this using UEFI. When I boot linux however, I'm greeted 
with a black screen. I'm unsure how to debug this as the kernel doesn't 
even panic, it just sits.

Here are some configuration files

.config: http://sprunge.us/SMcc


# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

UUID=d6788259-f948-4164-ae29-d1b996ffd6d9     /            ext4    
defaults            1     1
UUID=04ED-C3D3     /boot/efi    vfat     defaults            0     1
efivarfs       /sys/firmware/efi/efivars  efivarfs  defaults  0      1

# End /etc/fstab


# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,gpt2)
insmod efi_gop
insmod efi_uga
insmod font
if loadfont /grub/unicode.pf2; then
   loadfont /grub/unicode.pf2
   set gfxmode=auto
   insmod gfxterm
   set gfxpayload=keep
   terminal_output gfxterm

menuentry "GNU/Linux, Linux From Scratch"  {
   linux   /boot/vmlinuz-4.7.2-lfs-7.10-systemd 
root=UUID=d6788259-f948-4164-ae29-d1b996ffd6d9 rw quiet

Mount tree in Arch linux host:

sdc      8:32   0 931.5G  0 disk
├─sdc2   8:34   0 931.3G  0 part /mnt/lfs
└─sdc1   8:33   0   260M  0 part /mnt/lfs/boot/efi


lrwxrwxrwx 1 root root 10 Oct 29 14:42 04ED-C3D3 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Oct 29 14:42 
d6788259-f948-4164-ae29-d1b996ffd6d9 -> ../../sdc2

I've corrected the root from what it would be on Arch Host (hd2,gpt2 
being mounted as /dev/sdc) to when I investigate on grub command line 
(hd0,gpt2), so it is finding the kernel. I've attempted to switch out 
UUID's for /dev/sdX, however this still fails. Grub2 efi-directory was 
set to /boot/efi on installation. All the correct kernel options were 
set during compilation for UEFI installations.

More information about the lfs-support mailing list