Uploaded image for project: 'Red Hat Enterprise Linux AI'
  1. Red Hat Enterprise Linux AI
  2. RHELAI-2381

RHELAI container files must not override "releasever" DNF var

XMLWordPrintable

      The RHELAI container images have started to define the DNF var releasever, e.g. https://gitlab.com/redhat/rhel-ai/containers/instructlab-nvidia/-/merge_requests/410 . The releasever var is one of five hard-coded variables. The variable must not be modified by users. DNF reads the variable from RPMDB (e.g. from redhat-release package).

      To Reproduce Steps to reproduce the behavior:

      $ grep -R /etc/dnf/vars/releasever */Containerfile
      amd-bootc/Containerfile:    && echo "9.4" > /etc/dnf/vars/releasever
      amd-bootc/Containerfile:    && echo "9.4" > /etc/dnf/vars/releasever
      instructlab-nvidia/Containerfile:    && echo "9.4" > /etc/dnf/vars/releasever
      nvidia-bootc/Containerfile:    && echo "9.4" > /etc/dnf/vars/releasever
      

      Expected behavior

      • No container file attempts to modify releasever through /etc/dnf/vars.

      Additional context

              prarit@redhat.com Prarit Bhargava
              cheimes@redhat.com Christian Heimes
              Enrique Belarte Luque, Fabien Dupont, Liora Milbaum
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: