Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]systemd-boot assertion error with grub as bootloader
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
bobodoustaud
n00b
n00b


Joined: 20 Oct 2024
Posts: 4

PostPosted: Sun Oct 20, 2024 2:52 pm    Post subject: [Solved]systemd-boot assertion error with grub as bootloader Reply with quote

Hi!

After following the openrc instructions to install gentoo on my laptop and the grub instructions in the bootloader chapter, after unmounting, rebooting and removing the flash drive, GRUB opens up with the option to run Gentoo, and when gentoo is selected, i get an error:
Quote:
systemd-boot: Assertion 'device' failed at ../systemd-stable-254.17/src/boot/efi/part-discovery.c:251@partition_open, halting.
Loading initial ramdisk...


the thing is that i don't remember running any systemd-boot related command and specifically chose the openrc path. The only related issue i found on the web here is a different problem since my package.use/installkernel contains only
Code:
sys-kernel/installkernel grub
sys-kernel/installkernel grub


I tried fiddling around with the live usb by reinstalling grub but it didn't change anything. Does anyone have an idea what i could've messed up? I have the live usb chrooted ready to go for any extra details


Last edited by bobodoustaud on Sun Oct 20, 2024 8:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 392
Location: Nijmegen

PostPosted: Sun Oct 20, 2024 4:41 pm    Post subject: Reply with quote

What is the output of "emerge -pv sys-kernel/installkernel"?

And what kernel are you trying to boot?
_________________
OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
bobodoustaud
n00b
n00b


Joined: 20 Oct 2024
Posts: 4

PostPosted: Sun Oct 20, 2024 4:55 pm    Post subject: Reply with quote

the output :

https://i.imgur.com/gdwz3fj.jpeg

The kernel appears as "Gentoo GNU/Linux" in the grub.cfg and the grub ui. I used the amd64 desktop openrc stage3 file.
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 392
Location: Nijmegen

PostPosted: Sun Oct 20, 2024 5:10 pm    Post subject: Reply with quote

The problem is that UKIs don't really work with grub at the moment. To use UKIs I recommend using either systemd-boot or refind.
_________________
OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
bobodoustaud
n00b
n00b


Joined: 20 Oct 2024
Posts: 4

PostPosted: Sun Oct 20, 2024 5:46 pm    Post subject: Reply with quote

ok thx! I tried following systemd-boot instructions since there's an entry on the book after uninstalling grub, but when attempting to emerge systemd-utils, it fails to emerge down the line. It's a reinstall apparently and the message is the following

https://i.imgur.com/vOIvERF.jpeg

i did create the systemd-boot use flags file and filled with the build flag
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 392
Location: Nijmegen

PostPosted: Sun Oct 20, 2024 6:18 pm    Post subject: Reply with quote

The error is not visible in your screenshot, it is higher up. Anyway you don't need to rebuild systemd-utils, the flags you need for an UKI already install everything you'd need for systemd-boot. All that is left to do is to "bootctl install" and then reinstall the kernel.
_________________
OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
bobodoustaud
n00b
n00b


Joined: 20 Oct 2024
Posts: 4

PostPosted: Sun Oct 20, 2024 8:22 pm    Post subject: Reply with quote

ok worked out! thanks!
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