Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Required use flag constraints not met, at most one of
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
FuLl
n00b
n00b


Joined: 05 Mar 2024
Posts: 4

PostPosted: Wed Apr 03, 2024 9:19 pm    Post subject: Required use flag constraints not met, at most one of Reply with quote

Hi,
I'm doing the installation per the handbook & I'm on the GRUB part & am getting an error when I do
Code:
emerge --ask sys-kernel/installkernel


The error is in part:
Code:
!!! The ebuild selected to satisfy "sys-kernel/installkernel" has unmet requirements.
- sys-kernel/installkernel-28::gentoo USE="grub systemd systemd-boot -dracut -refind -uki -ukify" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    at-most-one-of ( grub refind systemd-boot )


I notice I should have at most one of grub or systemd-boot but I have both, per the handbook's instructions:
Code:
nano /etc/portage/package.use/systemd
(Add the following:)
sys-apps/systemd boot
sys-kernel/installkernel systemd-boot
(Save & Exit)

and
Code:
nano /etc/portage/package.use/installkernel
(Add the following)
sys-kernel/installkernel grub
(Save & Exit)


How should I proceed here?

Thanks in advance.
-F
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4169
Location: Bavaria

PostPosted: Wed Apr 03, 2024 9:35 pm    Post subject: Reply with quote

If you want use systemd-boot then remove the Use-flag "grub" ... either from your USE= in your make.conf, or if you have set it individually for installkernel in your package.use/...

This is too much:
Code:
nano /etc/portage/package.use/systemd
=>
sys-apps/systemd boot
sys-kernel/installkernel systemd-boot

nano /etc/portage/package.use/installkernel
=>
sys-kernel/installkernel grub


It should be:
Code:
nano /etc/portage/package.use/systemd
=>
sys-apps/systemd boot

nano /etc/portage/package.use/installkernel
=>
sys-kernel/installkernel systemd-boot

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21650

PostPosted: Wed Apr 03, 2024 11:22 pm    Post subject: Reply with quote

What page in the handbook directed you to enable both of these flags? That needs to be changed.
Back to top
View user's profile Send private message
FuLl
n00b
n00b


Joined: 05 Mar 2024
Posts: 4

PostPosted: Thu Apr 04, 2024 4:27 pm    Post subject: Reply with quote

The part of the handbook I was reading from is here:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#systemd-boot
...But at second thought it appears I misunderstood it. Apparently systemd has a boot loader too & the part preeceding the grub part was presenting the systemd bootloader as an option. If I read it this way & do it based on that interpretation I don't think I'll have an issue.

Looks like all I'll have to do now is remove the systemd-boot USE flags & emerge systemd again without them, then follow the grub part of the instructions.

Thank you for all your help.
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