-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-9.5, rhel-10.0
-
No
-
Low
-
rhel-anaconda
-
None
-
False
-
False
-
-
No
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
Unspecified Release Note Type - Unknown
-
None
What were you trying to do that didn't work?
Install @core with no defaults
What is the impact of this issue to you?
Makes it more difficult to build a minimal system
Please provide the package NVR for which the bug is seen:
34.25.5.9
How reproducible is this bug?:
Very
Steps to reproduce
- Create a kickstart wiith
%packages --nocore --exclude-weakdeps
@core --nodefaults
%end - Build system with kickstart
Expected results
Core group should be installed with only mandatory packages
Actual results
Some mandatory packages, such as dnf are missing
This seems to be caused by this code here.
# Handle the core group. if not data.core_group_enabled: log.info("Skipping @core group; system may not be complete.") exclude_list.append("@core") else: include_list.append("@core")
This seems like a bug as it makes a broad assumption. This is triggered by the --nocore option, which one would expect to disable the default behavior of adding the @core group, but not prevent the user from adding it manually. Otherwise, there is no way to specify options for the @core group.
I believe this should be refactored to something like:
# Handle the core group. if data.core_group_enabled: include_list.append("@core") else: log.info("Skipping @core group automatic inclusion; system may not be complete.")