Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot boot in UEFI on USB drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 465

PostPosted: Fri Sep 29, 2017 11:26 am    Post subject: cannot boot in UEFI on USB drive Reply with quote

I'm trying to bring my systems up-to-date with the latest booting standard and not having much luck.

I can boot an Ubuntu USB drive just fine, but the one I made isn't being recognized at all. This is what I did:

1. create GPT disk label / partition
a. /dev/sdx1 (EXT4), created so I could also do legacy boot?
b. /dev/sdx2 (FAT32, ESP)
c. /dev/sdx3 (LVM)

2. mounted /dev/sdx2 @ /boot
3. copied kernel / init / grub configuration to /boot, /boot/grub/grub.cfg
4. grub-install --target=x86_64-efi --efi-directory=/boot
a. this put files in /boot/EFI/grub

I rebooted and hoped the ESP would be seen, but it wasn't. So, I then tried copying the shim file into /boot/EFI/grub.

That also didn't work, so then I tried copying the entire grub directory to /boot/EFI/Boot. And, that also didn't work. I previously tried copying the kernel and initramfs directly to the ESP under that path and using efibootmgr to configure the kernel command-line options, also to no avail.

My systems are all Dell-based.

Shouldn't UEFI typically be as easy as creating a FAT32 partition anywhere on a disk and copying some files under /EFI/Boot/bootx86_64.efi? What am I missing?


Walter
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Fri Sep 29, 2017 5:44 pm    Post subject: Reply with quote

Well, I don't see the point of grub with UEFI. I don't use any bootloader at all; the kernel has a stub EFI loader, I use that.
_________________
My blog
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Fri Sep 29, 2017 5:45 pm    Post subject: Re: cannot boot in UEFI on USB drive Reply with quote

walterw wrote:
I'm trying to bring my systems up-to-date with the latest booting standard and not having much luck.

I can boot an Ubuntu USB drive just fine, but the one I made isn't being recognized at all. This is what I did:

Did it allow you to access efivarfs?
Code:
$ mount | grep efivarfs

efivarfs on /sys/firmware/efi/efivars type efivarfs (ro,relatime)

Also, see post 8121832

Some older Dell laptops seem to have a problem not passing additional parameters from NVRAM to the kernel, see post 8108736 and https://wiki.gentoo.org/wiki/EFI_stub_kernel#Optional:_Initramfs.
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 465

PostPosted: Fri Sep 29, 2017 8:13 pm    Post subject: Reply with quote

Hi,

The reason I want to use GRUB is because it will simplify the management of the process:
https://askubuntu.com/questions/948814/how-to-boot-load-the-kernel-using-efi-stub-efistub-loader-with-secure-boot#949078


I suppose I can sign my kernels every time I update the system, but I am figuring that I could just use GRUB with SHIM to get me there.

Yes, I believe it has access to efivars, I will reboot and test this.


Walter
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Fri Sep 29, 2017 9:03 pm    Post subject: Reply with quote

For Secure Boot see also https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Configuring_Secure_Boot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum