View previous topic :: View next topic |
Author |
Message |
bobodoustaud n00b
Joined: 20 Oct 2024 Posts: 4
|
Posted: Sun Oct 20, 2024 2:52 pm Post subject: [Solved]systemd-boot assertion error with grub as bootloader |
|
|
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 |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 429 Location: Nijmegen
|
Posted: Sun Oct 20, 2024 4:41 pm Post subject: |
|
|
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 |
|
|
bobodoustaud n00b
Joined: 20 Oct 2024 Posts: 4
|
Posted: Sun Oct 20, 2024 4:55 pm Post subject: |
|
|
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 |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 429 Location: Nijmegen
|
Posted: Sun Oct 20, 2024 5:10 pm Post subject: |
|
|
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 |
|
|
bobodoustaud n00b
Joined: 20 Oct 2024 Posts: 4
|
Posted: Sun Oct 20, 2024 5:46 pm Post subject: |
|
|
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 |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 429 Location: Nijmegen
|
Posted: Sun Oct 20, 2024 6:18 pm Post subject: |
|
|
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 |
|
|
bobodoustaud n00b
Joined: 20 Oct 2024 Posts: 4
|
Posted: Sun Oct 20, 2024 8:22 pm Post subject: |
|
|
ok worked out! thanks! |
|
Back to top |
|
|
|