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

missing Requires(post) for findutils - [rhel-10.2]

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-10.2
    • rhel-10.1
    • subscription-manager
    • None
    • No
    • Critical
    • ZStream
    • subs-client-tools
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Regression Exception
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      When building https://gitlab.com/redhat/rhel/containers/ubi9/, the package installation produces errors because the subscription-manager %post script attempts to use "find" and "xargs" before they're installed.

      What is the impact of this issue to you?

      The error is logged in a message which includes the name of the temporary file used to hold the scriptlet, and that gets stored in the history database and baked into the image, interfering with reproducibility.

      Please provide the package NVR for which the bug is seen:

      subscription-manager-1.29.46-1.el9

      How reproducible is this bug?:

      Highly

      Steps to reproduce

      1. git clone git@gitlab.com:redhat/rhel/containers/ubi9.git
      2. mkdir ubi9/prefetched
      3. curl -o ubi9/prefetched/2022-IT-Root-CA.pem https://certs.corp.redhat.com/certs/2022-IT-Root-CA.pem
      4. cd ubi9; git checkout rhel-9.7.0
      5. podman build -t dir:/tmp/build1o -v `pwd`/prefetched:/prefetched:ro,z .
      6. cd /tmp/build1o
      7. d=`jq -r '.layers[0].digest' manifest.json`; tar xvf ./${d##*:}
      8. sqlite3 ./var/lib/dnf/history.sqlite ".dump console_output"

      Expected results

      No "command not found" errors from randomly-named scripts.

      Actual results

      ...

      INSERT INTO console_output VALUES(7,2,1,'/var/tmp/rpm-tmp.hMXkSP: line 17: find: command not found');
      INSERT INTO console_output VALUES(8,2,1,'/var/tmp/rpm-tmp.hMXkSP: line 17: xargs: command not found');

      ...

              jhnidek@redhat.com Jiri Hnidek
              rhn-engineering-nalin Nalin Dahyabhai
              Jiri Hnidek
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              John Sefler John Sefler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: