-
Bug
-
Resolution: Unresolved
-
Major
-
rhel-10.1
-
None
-
No
-
Critical
-
ZStream
-
subs-client-tools
-
None
-
False
-
False
-
-
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
- git clone git@gitlab.com:redhat/rhel/containers/ubi9.git
- mkdir ubi9/prefetched
- curl -o ubi9/prefetched/2022-IT-Root-CA.pem https://certs.corp.redhat.com/certs/2022-IT-Root-CA.pem
- cd ubi9; git checkout rhel-9.7.0
- podman build -t dir:/tmp/build1o -v `pwd`/prefetched:/prefetched:ro,z .
- cd /tmp/build1o
- d=`jq -r '.layers[0].digest' manifest.json`; tar xvf ./${d##*:}
- 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');
...
- clones
-
RHEL-107041 missing Requires(post) for findutils
-
- In Progress
-
- is depended on by
-
RHEL-88522 [RHEL EPIC] Reproducible Container builds - RHEL 10.1
-
- In Progress
-
-
RUN-3276 [RHEL EPIC] [QE Test] Reproducible Container builds - RHEL 10.1
-
- Closed
-