Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-772

Disable excludes when using repoquery to check latest kernel

XMLWordPrintable

    • False
    • False
    • Hide

      None

      Show
      None
    • 2
    • 2022-Q4
    • Testable

      In `is_loaded_kernel_latest()`, repoquery is subject to "exclude=" in `/etc/yum.conf`. If there is `exclude=kernel`, the conversion can fail with the following:
      CRITICAL - Could not find any kernel from repositories to compare against the loaded kernel.
      This patch resolves that condition by explicitly disabling all "exclude" options with:
      --setopt=exclude""

       

              rhn-support-jcastran John Castranio
              rhn-support-jcastran John Castranio
              Freya Gustavsson
              Daniel Diblik Daniel Diblik
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: