Hi
 
I'm trying to boot an LFS from the an EFI partition.   The GRUB 2 EFI binary (grubx64.efi) is installed alone in its subdirectory of the ESP, i.e. /boot/EFI.  The grub configuration files are installed in /boot ON the EFI partition.   in the same partition I have the kernel and system.map.
 
My partitions
 
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk
├─sda1        8:1    0   128M  0 part
├─sda2        8:2    0  97.7G  0 part /mnt/win_data
└─sda3        8:3    0 833.7G  0 part /mnt/linux_data
nvme0n1     259:0    0 232.9G  0 disk
├─nvme0n1p1 259:1    0   200M  0 part /boot
├─nvme0n1p2 259:2    0   128M  0 part
├─nvme0n1p3 259:3    0  30.1G  0 part
├─nvme0n1p4 259:4    0  33.5G  0 part /mnt/home
├─nvme0n1p5 259:5    0    51G  0 part
├─nvme0n1p6 259:6    0    35G  0 part /mnt/LFS10
└─nvme0n1p7 259:7    0    44G  0 part /
 
My grub.config
 
# Begin /boot/grub/grub.cfg
set default=0
set timeout=10
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="text"
GRUB_TERMINAL=console
insmod ext2
insmod gzio
insmod part_gpt
set root=(hd1,gpt6)
insmod efi_gop
insmod efi_uga
menuentry "LFS11, Linux 4.20.8-lfs-7.9-rc2 systemd" {
     linux /boot/lfskernel-4.20.8 root=/dev/nvme0n1p7 ro
}
 
At the moment it boots okay with the above setup, but it's not accessing the kernel on the EFI partition.  I've tried altering the (hd1,gpt6) to (hd1,gpt1), but then no kernel is found anywhere. It insists on seeking the copy on LFS10.  If I take that copy away it won't boot again. 
 
Grub was installed from the nvme0n1p7 partition i.e / with the necessary options.
 
Any ideas?
 
thanks
 
Cliff
 
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to