Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
efibootmgr issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Mon Jan 10, 2022 5:33 am    Post subject: efibootmgr issues Reply with quote

So, I have managed to populate my /sys/firmware/efi/efivars by flipping my bios' nx bit back on. I can now see the variables both from the min install environment, outside of chroot, and inside. I then
'modprobe efivarfs'
'mount -o rw,remount /sys/firmware/efi/efivars'
and efibootmanager will show me correctly what my uefi boot entries are. I seem to be having issues getting my changes to stick. In the past, I only had to perform the above steps, less modprobing the efivarfs module to make the changes I wanted to my boot list. I have seen a ton of different examples online, regarding the efivars or efivarfs modules, bind mounting the efivars before, after, or both relative to chroot and have tried a variety of different things. Something has changed since my last usage of efibootmanager and I'm fishing for some suggestions to try next. Thanks.
_________________
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Back to top
View user's profile Send private message
acidrums4
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2009
Posts: 147
Location: Al otro lado del monitor

PostPosted: Tue Jan 11, 2022 12:33 am    Post subject: Reply with quote

What command are you issuing exactly?

I had some efibootmgr issues recently, also it didn't lasted for the next login, until I added the -d parameter
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Tue Jan 11, 2022 2:26 am    Post subject: Reply with quote

acidrums4 wrote:
What command are you issuing exactly?

I had some efibootmgr issues recently, also it didn't lasted for the next login, until I added the -d parameter

Because my root=/= /dev/sda, I always have to use the -d parameter. That wasn't my issue.

Have found a method that works for my bios, anyway:
I modprobe either 'efivars' or 'efivarfs' before the chroot. After remount my efivars rw, I can then add, and presumably delete entries. I cannot, however change order by doing

'efibootmgr -o'

I must first nuke the order with

'efibootmgr -O'

Only then can I set an order that persist through a reboot.

I'm to the point of kernel panics and other problems which I must sort out now, but it's progres..
_________________
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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