Bug 1215254

Summary: grub2-branding-openSUSE will not be installed
Product: [openSUSE] openSUSE Leap Micro Reporter: Stefan Schubert <schubi>
Component: BaseAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fvogt
Version: 5.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Solver Testcase

Description Stefan Schubert 2023-09-12 14:36:50 UTC
Created attachment 869455 [details]
Solver Testcase

Due
https://build.opensuse.org/request/show/1109083
the bootloader pattern will not be installed automatically. 
The package grub2-branding-openSUSE will not be installed anymore and the grub menu will not been shown in the graphical mode.

grub2-branding-openSUSE has the Supplements:
(grub2 and branding-openSUSE)

and grub2 and branding-openSUSE is selected for installation. The question is, why grub2-branding-openSUSE will not be selected for installation although this supplement is fulfilled.

When I am selecting the patterns-base-bootloader manually the package grub2-branding-openSUSE will be selected due the dependency:
Requires: (grub2-branding-openSUSE if branding-openSUSE)

So, this is a hard requirement and the other one is soft only.

Anyway, grub2-branding-openSUSE should also be selected due fulfilled supplements.
Or I am wrong ?
I am attaching a solver testcase. Thank you !
Comment 1 Stefan Schubert 2023-09-12 14:37:38 UTC
This bug is more for the libzypp team but I see not the category :-)
Comment 2 Fabian Vogt 2023-09-12 14:54:24 UTC
> The question is, why grub2-branding-openSUSE will not be selected for installation although this supplement is fulfilled.

MicroOS has solver.onlyRequires=true, so you need a hard dependency somewhere for this to work.

You could add something like

Requires: (grub2-branding-openSUSE if (branding-openSUSE and grub2))

into one of the chosen patterns.