Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-77139

No way to set option for @core group in kickstart

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.5, rhel-10.0
    • anaconda
    • No
    • Low
    • rhel-anaconda
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 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

      1. Create a kickstart wiith
        %packages --nocore --exclude-weakdeps
        @core --nodefaults
        %end
      2. 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.")

              anaconda-maint-list anaconda-maint-list
              avraml Avram Lubkin (Inactive)
              anaconda-maint-list anaconda-maint-list
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: