Hide Forgot
Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. create a Dockerfile with below content ``` FROM docker.io/redhat/ubi8 AS staging RUN mkdir -p /mnt/rootfs RUN yum update -y && \ yum install --installroot /mnt/rootfs coreutils-single glibc-minimal-langpack shadow-utils zlib ca-certificates --releasever 8 --setopt install_weak_deps=false --nodocs -y && \ yum --installroot /mnt/rootfs clean all && \ rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.* ``` 2. build the image 3. you'll see that it stuck in below line ``` ...... Running scriptlet: filesystem-3.8-6.el8.x86_64 36/36 Running scriptlet: glibc-all-langpacks-2.28-164.el8.x86_64 36/36 Running scriptlet: ca-certificates-2021.2.50-80.0.el8_4.noarch 36/36 Running scriptlet: glibc-common-2.28-164.el8.x86_64 36/36 Running scriptlet: info-6.5-6.el8.x86_64 36/36 ``` 4. If you remove `ca-certificates`, it build succesfully. Actual results: Docker build stuck Expected results: Succesfull docker build Additional info:
Gokhan, could you share the command that you used for the build please? Was it just `docker build .` or did you have other options included in the command or did you us podman or another container engine? Also I'm assuming you ran this command on a RHEL 8.5 system, if that's not correct, please let me know.
Hi Tom Yes, i just used docker build, no params, just show the file & give a tag with -t, thats it. Btw, i build the same image 2 weeks ago, but same docker file fails now. I tried first on my Mac laptop, using both podman & Docker desktop, both stuck in same place. Then I tried on one of our Jenkins servers, Amazon Linux v2, it also stuck in the same step.
Gokhan, This appears to be a subscription manager issue. If I add this line to your Dockerfile/Containerfile RUN subscription-manager register --username={myusername}--password={mypassword} and do `podman build -t tom .` it works. Test run below, I chopped out a number of lines that didn't add value. What's interesting is that even though I successfully connected with subscription manager in `SETP 3/4` below, later when yum is run, it complains that the registration to the subscription manager isn't complete, yet the build succeeds. Josh, Dan, Scott, I'm not sure about this, is it expected to require a subscription manager call in a Containerfile like this when using a UBI8 image and updating it? I think this may be a subscription manager issue as it happens in both Podman and Docker. Can we throw this Bugzilla at them? The hanging part is the primary issue in my view, it should error, or at the very least return back to the caller. ####### Test Run ###### (stubbed out real un/pwd below) # cat Containerfile FROM docker.io/redhat/ubi8 AS staging RUN mkdir -p /mnt/rootfs RUN subscription-manager register --username={myusername}--password={mypassword} RUN yum update -y && \ yum install --installroot /mnt/rootfs coreutils-single glibc-minimal-langpack ca-certificates shadow-utils zlib --releasever 8 --setopt install_weak_deps=false --nodocs -y && \ yum --installroot /mnt/rootfs clean all && \ rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.* # podman build -t tom . STEP 1/4: FROM docker.io/redhat/ubi8 AS staging Trying to pull docker.io/redhat/ubi8:latest... Getting image source signatures Copying blob 63f9f4c31162 done Copying blob ce3c6836540f done Copying config cc06568478 done Writing manifest to image destination Storing signatures STEP 2/4: RUN mkdir -p /mnt/rootfs --> 6389e97fc5b STEP 3/4: RUN subscription-manager register --username={myusername}--password={mypassword} Registering to: subscription.rhsm.redhat.com:443/subscription The system has been registered with ID: 900bf627-0513-40a4-a1c5-0cc571e0dfd7 The registered system name is: b20a3e8238f9 --> 7c611b1130b STEP 4/4: RUN yum update -y && yum install --installroot /mnt/rootfs coreutils-single glibc-minimal-langpack ca-certificates shadow-utils zlib --releasever 8 --setopt install_weak_deps=false --nodocs -y && yum --installroot /mnt/rootfs clean all && rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.* Updating Subscription Management repositories. { Number of updates removed for brevity} Installing : shadow-utils-2:4.6-14.el8.x86_64 35/36 Running scriptlet: ca-certificates-2021.2.50-80.0.el8_4.noarch 36/36 Installing : ca-certificates-2021.2.50-80.0.el8_4.noarch 36/36 Running scriptlet: ca-certificates-2021.2.50-80.0.el8_4.noarch 36/36 Running scriptlet: filesystem-3.8-6.el8.x86_64 36/36 Running scriptlet: ca-certificates-2021.2.50-80.0.el8_4.noarch 36/36 Running scriptlet: glibc-common-2.28-164.el8.x86_64 36/36 Running scriptlet: info-6.5-6.el8.x86_64 36/36 { Number of updates removed for brevity} Verifying : shadow-utils-2:4.6-14.el8.x86_64 33/36 Verifying : libsepol-2.9-3.el8.x86_64 34/36 Verifying : ncurses-base-6.1-9.20180224.el8.noarch 35/36 Verifying : redhat-release-8.5-0.8.el8.x86_64 36/36 Installed products updated. Installed: audit-libs-3.0-0.17.20191104git1c2f876.el8.x86_64 basesystem-11-5.el8.noarch bash-4.4.20-2.el8.x86_64 bzip2-libs-1.0.6-26.el8.x86_64 ca-certificates-2021.2.50-80.0.el8_4.noarch { Number of updates removed for brevity} zlib-1.2.11-17.el8.x86_64 Complete! Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. 42 files removed COMMIT tom --> d534745d050 Successfully tagged localhost/tom:latest d534745d0509b440f2ee80ba81f8f53749bacbb9c2875224733d44ad9b191bb7
Tom This doesnt make sense. This is an open source image, why would I need to subscribe? Besides, it doesnt explain why it builds successfully when ca-certificates removed + as mentioned, same file was building successfully 2 weeks ago.
Derrick, after talking with others today, I was told this is in your neck of the woods. I'm going to assign this to you, holler if that needs to be adjusted.
Any update on this one?
Derrick, any updates?
This doesn't appear to be a container-related problem to me at all. Here's a test with yum/dnf outside of a container: # cat /tmp/test/ubi.repo [ubi-8-baseos] name = Red Hat Universal Base Image 8 (RPMs) - BaseOS baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/os enabled = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-baseos-debug] name = Red Hat Universal Base Image 8 (Debug RPMs) - BaseOS baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/debug enabled = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-baseos-source] name = Red Hat Universal Base Image 8 (Source RPMs) - BaseOS baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/source/SRPMS enabled = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-appstream] name = Red Hat Universal Base Image 8 (RPMs) - AppStream baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/os enabled = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-appstream-debug] name = Red Hat Universal Base Image 8 (Debug RPMs) - AppStream baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/debug enabled = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-appstream-source] name = Red Hat Universal Base Image 8 (Source RPMs) - AppStream baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/source/SRPMS enabled = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-codeready-builder] name = Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/os enabled = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-codeready-builder-debug] name = Red Hat Universal Base Image 8 (Debug RPMs) - CodeReady Builder baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/debug enabled = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 [ubi-8-codeready-builder-source] name = Red Hat Universal Base Image 8 (Source RPMs) - CodeReady Builder baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/source/SRPMS enabled = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgcheck = 1 # cat /tmp/test/test.sh rm -rf /tmp/rootfs mkdir /tmp/rootfs yum -v install --installroot /tmp/rootfs coreutils-single glibc-minimal-langpack ca-certificates --releasever 8 --setopt install_weak_deps=false --nodocs -y --setopt=reposdir=/tmp/test # bash test.sh Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. YUM version: 4.4.2 cachedir: /tmp/rootfs/var/cache/dnf User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 8.4; generic; Linux.x86_64)' repo: downloading from remote: ubi-8-baseos Red Hat Universal Base Image 8 (RPMs) - BaseOS 1.9 MB/s | 794 kB 00:00 ubi-8-baseos: using metadata from Mon 15 Nov 2021 05:48:59 AM EST. repo: downloading from remote: ubi-8-appstream Red Hat Universal Base Image 8 (RPMs) - AppStream 5.5 MB/s | 2.6 MB 00:00 ubi-8-appstream: using metadata from Mon 29 Nov 2021 08:05:50 AM EST. repo: downloading from remote: ubi-8-codeready-builder Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder 67 kB/s | 15 kB 00:00 ubi-8-codeready-builder: using metadata from Tue 09 Nov 2021 04:15:33 PM EST. Completion plugin: Generating completion cache... --> Starting dependency resolution ---> Package glibc-common.x86_64 2.28-164.el8 will be installed ---> Package libsepol.x86_64 2.9-3.el8 will be installed ---> Package libcap.x86_64 2.26-5.el8 will be installed ---> Package glibc-minimal-langpack.x86_64 2.28-164.el8 will be installed ---> Package pcre.x86_64 8.42-6.el8 will be installed ---> Package p11-kit-trust.x86_64 0.23.22-1.el8 will be installed ---> Package zlib.x86_64 1.2.11-17.el8 will be installed ---> Package glibc.x86_64 2.28-164.el8 will be installed ---> Package grep.x86_64 3.1-6.el8 will be installed ---> Package setup.noarch 2.12.2-6.el8 will be installed ---> Package coreutils-single.x86_64 8.30-12.el8 will be installed ---> Package ncurses-base.noarch 6.1-9.20180224.el8 will be installed ---> Package redhat-release.x86_64 8.5-0.8.el8 will be installed ---> Package sed.x86_64 4.5-2.el8 will be installed ---> Package info.x86_64 6.5-6.el8 will be installed ---> Package libselinux.x86_64 2.9-5.el8 will be installed ---> Package libffi.x86_64 3.1-22.el8 will be installed ---> Package ncurses-libs.x86_64 6.1-9.20180224.el8 will be installed ---> Package ca-certificates.noarch 2021.2.50-80.0.el8_4 will be installed ---> Package filesystem.x86_64 3.8-6.el8 will be installed ---> Package chkconfig.x86_64 1.19.1-1.el8 will be installed ---> Package libacl.x86_64 2.2.53-1.el8 will be installed ---> Package basesystem.noarch 11-5.el8 will be installed ---> Package libtasn1.x86_64 4.13-3.el8 will be installed ---> Package libattr.x86_64 2.4.48-3.el8 will be installed ---> Package bash.x86_64 4.4.20-2.el8 will be installed ---> Package pcre2.x86_64 10.32-2.el8 will be installed ---> Package p11-kit.x86_64 0.23.22-1.el8 will be installed ---> Package popt.x86_64 1.18-1.el8 will be installed ---> Package tzdata.noarch 2021e-1.el8 will be installed --> Finished dependency resolution Dependencies resolved. ================================================================================================================================================================== Package Architecture Version Repository Size ================================================================================================================================================================== Installing: ca-certificates noarch 2021.2.50-80.0.el8_4 ubi-8-baseos 390 k coreutils-single x86_64 8.30-12.el8 ubi-8-baseos 629 k glibc-minimal-langpack x86_64 2.28-164.el8 ubi-8-baseos 58 k Installing dependencies: basesystem noarch 11-5.el8 ubi-8-baseos 11 k bash x86_64 4.4.20-2.el8 ubi-8-baseos 1.5 M chkconfig x86_64 1.19.1-1.el8 ubi-8-baseos 198 k filesystem x86_64 3.8-6.el8 ubi-8-baseos 1.1 M glibc x86_64 2.28-164.el8 ubi-8-baseos 3.6 M glibc-common x86_64 2.28-164.el8 ubi-8-baseos 1.3 M grep x86_64 3.1-6.el8 ubi-8-baseos 274 k info x86_64 6.5-6.el8 ubi-8-baseos 198 k libacl x86_64 2.2.53-1.el8 ubi-8-baseos 35 k libattr x86_64 2.4.48-3.el8 ubi-8-baseos 27 k libcap x86_64 2.26-5.el8 ubi-8-baseos 60 k libffi x86_64 3.1-22.el8 ubi-8-baseos 37 k libselinux x86_64 2.9-5.el8 ubi-8-baseos 165 k libsepol x86_64 2.9-3.el8 ubi-8-baseos 340 k libtasn1 x86_64 4.13-3.el8 ubi-8-baseos 76 k ncurses-base noarch 6.1-9.20180224.el8 ubi-8-baseos 81 k ncurses-libs x86_64 6.1-9.20180224.el8 ubi-8-baseos 334 k p11-kit x86_64 0.23.22-1.el8 ubi-8-baseos 324 k p11-kit-trust x86_64 0.23.22-1.el8 ubi-8-baseos 137 k pcre x86_64 8.42-6.el8 ubi-8-baseos 211 k pcre2 x86_64 10.32-2.el8 ubi-8-baseos 246 k popt x86_64 1.18-1.el8 ubi-8-baseos 61 k redhat-release x86_64 8.5-0.8.el8 ubi-8-baseos 44 k sed x86_64 4.5-2.el8 ubi-8-baseos 298 k setup noarch 2.12.2-6.el8 ubi-8-baseos 181 k tzdata noarch 2021e-1.el8 ubi-8-baseos 474 k zlib x86_64 1.2.11-17.el8 ubi-8-baseos 102 k Transaction Summary ================================================================================================================================================================== Install 30 Packages Total download size: 12 M Installed size: 44 M Downloading Packages: (1/30): libcap-2.26-5.el8.x86_64.rpm 408 kB/s | 60 kB 00:00 (2/30): glibc-minimal-langpack-2.28-164.el8.x86_64.rpm 1.3 MB/s | 58 kB 00:00 (3/30): libsepol-2.9-3.el8.x86_64.rpm 1.4 MB/s | 340 kB 00:00 (4/30): pcre-8.42-6.el8.x86_64.rpm 2.7 MB/s | 211 kB 00:00 (5/30): p11-kit-trust-0.23.22-1.el8.x86_64.rpm 3.5 MB/s | 137 kB 00:00 (6/30): zlib-1.2.11-17.el8.x86_64.rpm 3.1 MB/s | 102 kB 00:00 (7/30): glibc-common-2.28-164.el8.x86_64.rpm 3.7 MB/s | 1.3 MB 00:00 (8/30): grep-3.1-6.el8.x86_64.rpm 4.7 MB/s | 274 kB 00:00 (9/30): setup-2.12.2-6.el8.noarch.rpm 3.7 MB/s | 181 kB 00:00 (10/30): ncurses-base-6.1-9.20180224.el8.noarch.rpm 1.7 MB/s | 81 kB 00:00 (11/30): coreutils-single-8.30-12.el8.x86_64.rpm 5.3 MB/s | 629 kB 00:00 (12/30): redhat-release-8.5-0.8.el8.x86_64.rpm 1.0 MB/s | 44 kB 00:00 (13/30): glibc-2.28-164.el8.x86_64.rpm 14 MB/s | 3.6 MB 00:00 (14/30): info-6.5-6.el8.x86_64.rpm 3.9 MB/s | 198 kB 00:00 (15/30): sed-4.5-2.el8.x86_64.rpm 4.4 MB/s | 298 kB 00:00 (16/30): libffi-3.1-22.el8.x86_64.rpm 1.5 MB/s | 37 kB 00:00 (17/30): libselinux-2.9-5.el8.x86_64.rpm 4.0 MB/s | 165 kB 00:00 (18/30): ncurses-libs-6.1-9.20180224.el8.x86_64.rpm 7.3 MB/s | 334 kB 00:00 (19/30): ca-certificates-2021.2.50-80.0.el8_4.noarch.rpm 6.5 MB/s | 390 kB 00:00 (20/30): chkconfig-1.19.1-1.el8.x86_64.rpm 3.7 MB/s | 198 kB 00:00 (21/30): filesystem-3.8-6.el8.x86_64.rpm 12 MB/s | 1.1 MB 00:00 (22/30): libacl-2.2.53-1.el8.x86_64.rpm 836 kB/s | 35 kB 00:00 (23/30): basesystem-11-5.el8.noarch.rpm 407 kB/s | 11 kB 00:00 (24/30): libtasn1-4.13-3.el8.x86_64.rpm 3.5 MB/s | 76 kB 00:00 (25/30): libattr-2.4.48-3.el8.x86_64.rpm 791 kB/s | 27 kB 00:00 (26/30): pcre2-10.32-2.el8.x86_64.rpm 6.9 MB/s | 246 kB 00:00 (27/30): p11-kit-0.23.22-1.el8.x86_64.rpm 5.8 MB/s | 324 kB 00:00 (28/30): popt-1.18-1.el8.x86_64.rpm 920 kB/s | 61 kB 00:00 (29/30): bash-4.4.20-2.el8.x86_64.rpm 10 MB/s | 1.5 MB 00:00 (30/30): tzdata-2021e-1.el8.noarch.rpm 7.0 MB/s | 474 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 15 MB/s | 12 MB 00:00 warning: /tmp/rootfs/var/cache/dnf/ubi-8-baseos-53c30a88cff3796c/packages/glibc-common-2.28-164.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY Red Hat Universal Base Image 8 (RPMs) - BaseOS 4.9 MB/s | 5.0 kB 00:00 Importing GPG key 0xFD431D51: Userid : "Red Hat, Inc. (release key 2) <security>" Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Key imported successfully Importing GPG key 0xD4082792: Userid : "Red Hat, Inc. (auxiliary key) <security>" Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction RPMDB altered outside of YUM. Running scriptlet: filesystem-3.8-6.el8.x86_64 1/1 Preparing : 1/1 Installing : tzdata-2021e-1.el8.noarch 1/30 Installing : redhat-release-8.5-0.8.el8.x86_64 2/30 Installing : setup-2.12.2-6.el8.noarch 3/30 Running scriptlet: setup-2.12.2-6.el8.noarch 3/30 Installing : filesystem-3.8-6.el8.x86_64 4/30 Installing : basesystem-11-5.el8.noarch 5/30 Installing : ncurses-base-6.1-9.20180224.el8.noarch 6/30 Installing : pcre2-10.32-2.el8.x86_64 7/30 Installing : libselinux-2.9-5.el8.x86_64 8/30 Installing : glibc-minimal-langpack-2.28-164.el8.x86_64 9/30 Installing : ncurses-libs-6.1-9.20180224.el8.x86_64 10/30 Installing : glibc-common-2.28-164.el8.x86_64 11/30 Running scriptlet: glibc-2.28-164.el8.x86_64 12/30 Installing : glibc-2.28-164.el8.x86_64 12/30 Running scriptlet: glibc-2.28-164.el8.x86_64 12/30 Installing : bash-4.4.20-2.el8.x86_64 13/30 Running scriptlet: bash-4.4.20-2.el8.x86_64 13/30 Installing : libsepol-2.9-3.el8.x86_64 14/30 Running scriptlet: libsepol-2.9-3.el8.x86_64 14/30 Installing : libattr-2.4.48-3.el8.x86_64 15/30 Installing : libacl-2.2.53-1.el8.x86_64 16/30 Installing : libcap-2.26-5.el8.x86_64 17/30 Installing : coreutils-single-8.30-12.el8.x86_64 18/30 Installing : pcre-8.42-6.el8.x86_64 19/30 Installing : zlib-1.2.11-17.el8.x86_64 20/30 Installing : info-6.5-6.el8.x86_64 21/30 Installing : grep-3.1-6.el8.x86_64 22/30 Running scriptlet: grep-3.1-6.el8.x86_64 22/30 install-info: No such file or directory for /dev/null Installing : sed-4.5-2.el8.x86_64 23/30 Running scriptlet: sed-4.5-2.el8.x86_64 23/30 install-info: No such file or directory for /dev/null Installing : libffi-3.1-22.el8.x86_64 24/30 Installing : p11-kit-0.23.22-1.el8.x86_64 25/30 Installing : libtasn1-4.13-3.el8.x86_64 26/30 Running scriptlet: libtasn1-4.13-3.el8.x86_64 26/30 Installing : popt-1.18-1.el8.x86_64 27/30 Installing : chkconfig-1.19.1-1.el8.x86_64 28/30 Installing : p11-kit-trust-0.23.22-1.el8.x86_64 29/30 Running scriptlet: p11-kit-trust-0.23.22-1.el8.x86_64 29/30 Running scriptlet: ca-certificates-2021.2.50-80.0.el8_4.noarch 30/30 Installing : ca-certificates-2021.2.50-80.0.el8_4.noarch 30/30 Running scriptlet: ca-certificates-2021.2.50-80.0.el8_4.noarch 30/30 Running scriptlet: filesystem-3.8-6.el8.x86_64 30/30 Running scriptlet: ca-certificates-2021.2.50-80.0.el8_4.noarch 30/30 Running scriptlet: glibc-common-2.28-164.el8.x86_64 30/30 Running scriptlet: info-6.5-6.el8.x86_64 30/30 ^Cwarning: %transfiletriggerin(info-6.5-6.el8.x86_64) scriptlet failed, signal 2 Error in <unknown> scriptlet in rpm package info I used ctrl+c to kill the process after waiting a few minutes for the step to finish What is strange is that if I use the RHEL repos instead of the UBI repos it does work. I've confirmed that the NVR for the requested packages is the same between both repos, and that the info-6.5-6.el8.x86_64 RPM package is identical from both repos. I do not know what would cause this difference in behavior. In this situation it seems to be somehow related to the info package's filetriggers: # rpm -qp --filetriggers info-6.5-6.el8.x86_64.rpm transfiletriggerin scriptlet (using /bin/sh) -- /usr/share/info [ -f /usr/share/info/dir ] && create_arg="" || create_arg="--create" /usr/sbin/fix-info-dir $create_arg /usr/share/info/dir &>/dev/null transfiletriggerpostun scriptlet (using /bin/sh) -- /usr/share/info [ -f /usr/share/info/dir ] && /usr/sbin/fix-info-dir --delete /usr/share/info/dir &>/dev/null I'm not sure how to debug what the filetriggers are doing.
Digging in on the rpm side: # cat test.sh rm -rf /tmp/rootfs mkdir /tmp/rootfs /tmp/test/rpms yum -v install --downloaddir=/tmp/test/rpms --downloadonly --installroot /tmp/rootfs coreutils-single glibc-minimal-langpack ca-certificates --releasever 8 --setopt install_weak_deps=false --nodocs -y --setopt=reposdir=/tmp/test rpm --root /tmp/rootfs/ -ivvh /tmp/test/rpms/*.rpm # bash test.sh Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting , playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. YUM version: 4.4.2 cachedir: /tmp/rootfs/var/cache/dnf User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 8.4; generic; Linux.x86_64)' repo: downloading from remote: ubi-8-baseos Red Hat Universal Base Image 8 (RPMs) - BaseOS 2.0 MB/s | 794 kB 00:00 ubi-8-baseos: using metadata from Mon 15 Nov 2021 05:48:59 AM EST. repo: downloading from remote: ubi-8-appstream Red Hat Universal Base Image 8 (RPMs) - AppStre 5.9 MB/s | 2.6 MB 00:00 ubi-8-appstream: using metadata from Mon 29 Nov 2021 08:05:50 AM EST. repo: downloading from remote: ubi-8-codeready-builder Red Hat Universal Base Image 8 (RPMs) - CodeRea 65 kB/s | 15 kB 00:00 ubi-8-codeready-builder: using metadata from Tue 09 Nov 2021 04:15:33 PM EST. Completion plugin: Generating completion cache... --> Starting dependency resolution ---> Package glibc-common.x86_64 2.28-164.el8 will be installed ---> Package libsepol.x86_64 2.9-3.el8 will be installed ---> Package libcap.x86_64 2.26-5.el8 will be installed ---> Package glibc-minimal-langpack.x86_64 2.28-164.el8 will be installed ---> Package pcre.x86_64 8.42-6.el8 will be installed ---> Package p11-kit-trust.x86_64 0.23.22-1.el8 will be installed ---> Package zlib.x86_64 1.2.11-17.el8 will be installed ---> Package glibc.x86_64 2.28-164.el8 will be installed ---> Package grep.x86_64 3.1-6.el8 will be installed ---> Package setup.noarch 2.12.2-6.el8 will be installed ---> Package coreutils-single.x86_64 8.30-12.el8 will be installed ---> Package ncurses-base.noarch 6.1-9.20180224.el8 will be installed ---> Package redhat-release.x86_64 8.5-0.8.el8 will be installed ---> Package sed.x86_64 4.5-2.el8 will be installed ---> Package info.x86_64 6.5-6.el8 will be installed ---> Package libselinux.x86_64 2.9-5.el8 will be installed ---> Package libffi.x86_64 3.1-22.el8 will be installed ---> Package ncurses-libs.x86_64 6.1-9.20180224.el8 will be installed ---> Package ca-certificates.noarch 2021.2.50-80.0.el8_4 will be installed ---> Package filesystem.x86_64 3.8-6.el8 will be installed ---> Package chkconfig.x86_64 1.19.1-1.el8 will be installed ---> Package libacl.x86_64 2.2.53-1.el8 will be installed ---> Package basesystem.noarch 11-5.el8 will be installed ---> Package libtasn1.x86_64 4.13-3.el8 will be installed ---> Package libattr.x86_64 2.4.48-3.el8 will be installed ---> Package bash.x86_64 4.4.20-2.el8 will be installed ---> Package pcre2.x86_64 10.32-2.el8 will be installed ---> Package p11-kit.x86_64 0.23.22-1.el8 will be installed ---> Package popt.x86_64 1.18-1.el8 will be installed ---> Package tzdata.noarch 2021e-1.el8 will be installed --> Finished dependency resolution Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: ca-certificates noarch 2021.2.50-80.0.el8_4 ubi-8-baseos 390 k coreutils-single x86_64 8.30-12.el8 ubi-8-baseos 629 k glibc-minimal-langpack x86_64 2.28-164.el8 ubi-8-baseos 58 k Installing dependencies: basesystem noarch 11-5.el8 ubi-8-baseos 11 k bash x86_64 4.4.20-2.el8 ubi-8-baseos 1.5 M chkconfig x86_64 1.19.1-1.el8 ubi-8-baseos 198 k filesystem x86_64 3.8-6.el8 ubi-8-baseos 1.1 M glibc x86_64 2.28-164.el8 ubi-8-baseos 3.6 M glibc-common x86_64 2.28-164.el8 ubi-8-baseos 1.3 M grep x86_64 3.1-6.el8 ubi-8-baseos 274 k info x86_64 6.5-6.el8 ubi-8-baseos 198 k libacl x86_64 2.2.53-1.el8 ubi-8-baseos 35 k libattr x86_64 2.4.48-3.el8 ubi-8-baseos 27 k libcap x86_64 2.26-5.el8 ubi-8-baseos 60 k libffi x86_64 3.1-22.el8 ubi-8-baseos 37 k libselinux x86_64 2.9-5.el8 ubi-8-baseos 165 k libsepol x86_64 2.9-3.el8 ubi-8-baseos 340 k libtasn1 x86_64 4.13-3.el8 ubi-8-baseos 76 k ncurses-base noarch 6.1-9.20180224.el8 ubi-8-baseos 81 k ncurses-libs x86_64 6.1-9.20180224.el8 ubi-8-baseos 334 k p11-kit x86_64 0.23.22-1.el8 ubi-8-baseos 324 k p11-kit-trust x86_64 0.23.22-1.el8 ubi-8-baseos 137 k pcre x86_64 8.42-6.el8 ubi-8-baseos 211 k pcre2 x86_64 10.32-2.el8 ubi-8-baseos 246 k popt x86_64 1.18-1.el8 ubi-8-baseos 61 k redhat-release x86_64 8.5-0.8.el8 ubi-8-baseos 44 k sed x86_64 4.5-2.el8 ubi-8-baseos 298 k setup noarch 2.12.2-6.el8 ubi-8-baseos 181 k tzdata noarch 2021e-1.el8 ubi-8-baseos 474 k zlib x86_64 1.2.11-17.el8 ubi-8-baseos 102 k Transaction Summary ================================================================================ Install 30 Packages Total size: 12 M Installed size: 44 M YUM will only download packages for the transaction. Downloading Packages: [...] D: ============== /tmp/test/rpms/info-6.5-6.el8.x86_64.rpm D: /tmp/test/rpms/info-6.5-6.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: OK D: /tmp/test/rpms/info-6.5-6.el8.x86_64.rpm: Header SHA256 digest: OK D: /tmp/test/rpms/info-6.5-6.el8.x86_64.rpm: Header SHA1 digest: OK [...] D: ========== +++ info-6.5-6.el8 x86_64/linux 0x2 D: Requires: /bin/sh YES (added files) D: Requires: /bin/sh YES (added files) D: Requires: libc.so.6()(64bit) YES (added provide) D: Requires: libc.so.6(GLIBC_2.14)(64bit) YES (added provide) D: Requires: libc.so.6(GLIBC_2.15)(64bit) YES (added provide) D: Requires: libc.so.6(GLIBC_2.2.5)(64bit) YES (added provide) D: Requires: libc.so.6(GLIBC_2.3)(64bit) YES (added provide) D: Requires: libc.so.6(GLIBC_2.3.4)(64bit) YES (added provide) D: Requires: libc.so.6(GLIBC_2.4)(64bit) YES (added provide) D: Requires: libc.so.6(GLIBC_2.8)(64bit) YES (added provide) D: Requires: libtinfo.so.6()(64bit) YES (added provide) D: Requires: libz.so.1()(64bit) YES (added provide) D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides) D: Requires: rpmlib(FileDigests) <= 4.6.0-1 YES (rpmlib provides) D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides) D: Requires: rpmlib(PayloadIsXz) <= 5.2-1 YES (rpmlib provides) D: Requires: rtld(GNU_HASH) YES (added provide) [...] D: ========== +++ info-6.5-6.el8 x86_64-linux 0x2 D: info-6.5-6.el8.x86_64: Header V3 RSA/SHA256 Signature, key ID fd431d51: OK D: info-6.5-6.el8.x86_64: Header SHA256 digest: OK D: info-6.5-6.el8.x86_64: Header SHA1 digest: OK D: install: info-6.5-6.el8.x86_64 has 17 files D: Plugin: calling hook psm_pre in selinux plugin info-6.5-6.el8 D: ========== Directories not explicitly included in package: D: 0 /sbin/ D: 1 /usr/bin/ D: 6 /usr/lib/rpm/macros.d/ D: 7 /usr/sbin/ D: 8 /usr/share/info/ D: 9 /usr/share/licenses/ D: 11 /usr/share/man/man1/ D: 12 /usr/share/man/man5/ D: ========== D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/lib/rpm, system_u:object_r:lib_t:s0) D: /usr/lib/rpm directory created with perms 0755 D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/lib/rpm/macros.d, system_u:object_r:lib_t:s0) D: /usr/lib/rpm/macros.d directory created with perms 0755 D: create 100755 1 ( 0, 0) 51440 /sbin/install-info;61a7ab16 #####ufdio: 2 writes, 51440 total bytes in 0.000074 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/sbin/install-info;61a7ab16, system_u:object_r:bin_t:s0) D: create 100755 1 ( 0, 0)255800 /usr/bin/info;61a7ab16 ###########################ufdio: 8 writes, 255800 total bytes in 0.000265 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/bin/info;61a7ab16, system_u:object_r:bin_t:s0) D: skip 040755 1 ( 0, 0) 0 /usr/lib/.build-id D: skip 040755 1 ( 0, 0) 0 /usr/lib/.build-id/bd D: create 120777 1 ( 0, 0) 29 /usr/lib/.build-id/bd/40e8941d10c1d2e4c7ac090da8c9dc6a2065a6;61a7ab16 D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/lib/.build-id/bd/40e8941d10c1d2e4c7ac090da8c9dc6a2065a6;61a7ab16, system_u:object_r:lib_t:s0) D: create 040755 1 ( 0, 0) 0 /usr/lib/.build-id/c8 D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/lib/.build-id/c8, system_u:object_r:lib_t:s0) D: create 120777 1 ( 0, 0) 24 /usr/lib/.build-id/c8/0756d390384e53c1d5e33da4a33dbb78ca2a01;61a7ab16 D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/lib/.build-id/c8/0756d390384e53c1d5e33da4a33dbb78ca2a01;61a7ab16, system_u:object_r:lib_t:s0) D: create 100644 1 ( 0, 0) 390 /usr/lib/rpm/macros.d/macros.info;61a7ab16 ufdio: 1 writes, 390 total bytes in 0.000011 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/lib/rpm/macros.d/macros.info;61a7ab16, system_u:object_r:lib_t:s0) D: create 100755 1 ( 0, 0) 7976 /usr/sbin/fix-info-dir;61a7ab16 #ufdio: 1 writes, 7976 total bytes in 0.000020 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/sbin/fix-info-dir;61a7ab16, system_u:object_r:bin_t:s0) D: create 100644 1 ( 0, 0) 30208 /usr/share/info/info-stnd.info.gz;61a7ab16 ###ufdio: 1 writes, 30208 total bytes in 0.000044 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/share/info/info-stnd.info.gz;61a7ab16, system_u:object_r:usr_t:s0) D: create 040755 1 ( 0, 0) 0 /usr/share/licenses/info D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/share/licenses/info, system_u:object_r:usr_t:s0) D: create 100644 1 ( 0, 0) 35147 /usr/share/licenses/info/COPYING;61a7ab16 #### ufdio: 2 writes, 35147 total bytes in 0.000051 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/share/licenses/info/COPYING;61a7ab16, system_u:object_r:usr_t:s0) D: create 100644 1 ( 0, 0) 1417 /usr/share/man/man1/info.1.gz;61a7ab16 ufdio: 1 writes, 1417 total bytes in 0.000010 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/share/man/man1/info.1.gz;61a7ab16, system_u:object_r:man_t:s0) D: create 100644 1 ( 0, 0) 1748 /usr/share/man/man1/install-info.1.gz;61a7ab16 ufdio: 1 writes, 1748 total bytes in 0.000011 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/share/man/man1/install-info.1.gz;61a7ab16, system_u:object_r:man_t:s0) D: create 100644 1 ( 0, 0) 781 /usr/share/man/man5/info.5.gz;61a7ab16 ufdio: 1 writes, 781 total bytes in 0.000010 secs D: Plugin: calling hook fsm_file_prepare in selinux plugin D: lsetfilecon: (/usr/share/man/man5/info.5.gz;61a7ab16, system_u:object_r:man_t:s0) fdio: 85 reads, 387256 total bytes in 0.022056 secs D: adding "info" to Name index. D: adding 17 entries to Basenames index. D: adding "Unspecified" to Group index. D: adding 17 entries to Requirename index. D: adding 2 entries to Providename index. D: adding 13 entries to Dirnames index. D: adding 1 entries to Installtid index. D: adding 1 entries to Sigmd5 index. D: adding "0c3459f23d188074b4422012884a27923986e6f8" to Sha1header index. D: adding 2 entries to Transfiletriggername index. ufdio: 6 reads, 27780 total bytes in 0.000029 secs [...] D: %transfiletriggerin(info-6.5-6.el8.x86_64): scriptlet start fdio: 2 writes, 142 total bytes in 0.000013 secs D: %transfiletriggerin(info-6.5-6.el8.x86_64): execv(/bin/sh) pid 451176 D: Plugin: calling hook scriptlet_fork_post in selinux plugin D: setexecfilecon: (/bin/sh, rpm_script_t) + '[' -f /usr/share/info/dir ']' + create_arg=--create + /usr/sbin/fix-info-dir --create /usr/share/info/dir D: %transfiletriggerin(info-6.5-6.el8.x86_64): waitpid(451176) rc 451176 status 2 warning: %transfiletriggerin(info-6.5-6.el8.x86_64) scriptlet failed, signal 2 D: read h# 30 Header V3 RSA/SHA256 Signature, key ID fd431d51: OK Header SHA256 digest: OK Header SHA1 digest: OK D: Plugin: calling hook psm_pre in selinux plugin D: read h# 31 Header V3 RSA/SHA256 Signature, key ID fd431d51: OK Header SHA256 digest: OK Header SHA1 digest: OK D: Plugin: calling hook psm_pre in selinux plugin D: Plugin: calling hook psm_pre in selinux plugin D: Plugin: calling hook tsm_post in selinux plugin D: Plugin: calling hook tsm_post in systemd_inhibit plugin D: System shutdown unblocked D: exiting on signal 2 (killed by death, eh?) D: closed db index /tmp/rootfs/var/lib/rpm/Packages D: closed db index /tmp/rootfs/var/lib/rpm/Enhancename D: closed db index /tmp/rootfs/var/lib/rpm/Supplementname D: closed db index /tmp/rootfs/var/lib/rpm/Suggestname D: closed db index /tmp/rootfs/var/lib/rpm/Recommendname D: closed db index /tmp/rootfs/var/lib/rpm/Transfiletriggername D: closed db index /tmp/rootfs/var/lib/rpm/Filetriggername D: closed db index /tmp/rootfs/var/lib/rpm/Sha1header D: closed db index /tmp/rootfs/var/lib/rpm/Sigmd5 D: closed db index /tmp/rootfs/var/lib/rpm/Installtid D: closed db index /tmp/rootfs/var/lib/rpm/Dirnames D: closed db index /tmp/rootfs/var/lib/rpm/Triggername D: closed db index /tmp/rootfs/var/lib/rpm/Obsoletename D: closed db index /tmp/rootfs/var/lib/rpm/Conflictname D: closed db index /tmp/rootfs/var/lib/rpm/Providename D: closed db index /tmp/rootfs/var/lib/rpm/Requirename D: closed db index /tmp/rootfs/var/lib/rpm/Group D: closed db index /tmp/rootfs/var/lib/rpm/Basenames D: closed db index /tmp/rootfs/var/lib/rpm/Name D: closed db environment /tmp/rootfs/var/lib/rpm D: removed db environment /tmp/rootfs/var/lib/rpm So it's hanging on '/usr/sbin/fix-info-dir --create /usr/share/info/dir'. I assume this is chroot'd under the alternative install root.
Reproducing the condition on an unregistered system: # podman run --rm -it ubi8 bash [root@1ddd8c68b7b3 /]# mkdir /tmp/rootfs [root@1ddd8c68b7b3 /]# yum -v install --installroot /tmp/rootfs coreutils-single glibc-minimal-langpack ca-certificates --releasever 8 --setopt install_weak_deps=false --nodocs -y <snip> [1]+ Stopped yum -v install --installroot /tmp/rootfs coreutils-single glibc-minimal-langpack ca-certificates --releasever 8 --setopt install_weak_deps=false --nodocs -y [root@1ddd8c68b7b3 /]# bg 1 [1]+ yum -v install --installroot /tmp/rootfs coreutils-single glibc-minimal-langpack ca-certificates --releasever 8 --setopt install_weak_deps=false --nodocs -y & [root@1ddd8c68b7b3 /]# find /proc -maxdepth 3 -name comm -print -exec cat {} \; /proc/1/comm bash /proc/29/comm yum /proc/147/comm sh /proc/148/comm fix-info-dir /proc/191/comm find It's definitely the info scriptlets, since you can kill it and the install continues: [root@1ddd8c68b7b3 /]# kill 148 [root@1ddd8c68b7b3 /]# /var/tmp/rpm-tmp.6AVZAq: line 2: 148 Terminated /usr/sbin/fix-info-dir $create_arg /usr/share/info/dir &> /dev/null warning: %transfiletriggerin(info-6.5-6.el8.x86_64) scriptlet failed, exit status 143 Error in <unknown> scriptlet in rpm package info <snip> Installed: basesystem-11-5.el8.noarch bash-4.4.20-2.el8.x86_64 ca-certificates-2021.2.50-80.0.el8_4.noarch chkconfig-1.19.1-1.el8.x86_64 coreutils-single-8.30-12.el8.x86_64 filesystem-3.8-6.el8.x86_64 glibc-2.28-164.el8.x86_64 glibc-common-2.28-164.el8.x86_64 glibc-minimal-langpack-2.28-164.el8.x86_64 grep-3.1-6.el8.x86_64 info-6.5-6.el8.x86_64 libacl-2.2.53-1.el8.x86_64 libattr-2.4.48-3.el8.x86_64 libcap-2.26-5.el8.x86_64 libffi-3.1-22.el8.x86_64 libselinux-2.9-5.el8.x86_64 libsepol-2.9-3.el8.x86_64 libtasn1-4.13-3.el8.x86_64 ncurses-base-6.1-9.20180224.el8.noarch ncurses-libs-6.1-9.20180224.el8.x86_64 p11-kit-0.23.22-1.el8.x86_64 p11-kit-trust-0.23.22-1.el8.x86_64 pcre-8.42-6.el8.x86_64 pcre2-10.32-2.el8.x86_64 popt-1.18-1.el8.x86_64 redhat-release-8.5-0.8.el8.x86_64 sed-4.5-2.el8.x86_64 setup-2.12.2-6.el8.noarch tzdata-2021e-1.el8.noarch zlib-1.2.11-17.el8.x86_64 Complete! Restarting the test and dropping back to the host: [root@1ddd8c68b7b3 /]# rm -rf /tmp/rootfs [root@1ddd8c68b7b3 /]# mkdir -p /tmp/rootfs [root@1ddd8c68b7b3 /]# yum -v install --installroot /tmp/rootfs coreutils-single glibc-minimal-langpack ca-certificates --releasever 8 --setopt install_weak_deps=false --nodocs -y <snip> <ctrl>-p, q # pstree -pa 9899 conmon,9899 --api-version 1 -c 1ddd8c68b7b39bac1b6616d786d72721c265d52ae6bc9d9843b35f01cc35f053 -u 1ddd8c68b7b39bac1b6616d786d72721c265d52ae6bc9d9843b35f01cc35f053 -r /usr/bin/runc -b/ ├─bash,9910 │ └─yum,10160 /usr/bin/yum -v install --installroot /tmp/rootfs coreutils-single glibc-minimal-langpack ca-certificates --releasever 8 --setopt install_weak_deps=false--nodo │ └─sh,10283 /var/tmp/rpm-tmp.x5dqyi 0 0 │ └─fix-info-dir,10284 /usr/sbin/fix-info-dir --create /usr/share/info/dir └─{conmon},9901 It's in this funny loop: ### go through the list of files in the skeleton. If an info file ### exists, grab the ENTRY information from it. If an entry exists ### use it, otherwise create a minimal $DIR_FILE entry. # Read one line from the file. This is so that we can echo lines with # whitespace and quoted characters in them. while read fileline; do # flag fancy features if test ! -z "$echoline"; then # echo line echo "$fileline" echoline="" continue elif test "${fileline}" = "--"; then # echo the next line echoline="1" continue elif test "${fileline}" = "%%"; then # skip remaining files listed in skeleton file skip="1" continue elif test "${fileline}" = "!!"; then # quit now break fi # handle files if they exist for file in $fileline""; do fname= if test -z "$file"; then break fi # Find the file to operate upon. if test -r "$file"; then fname="$file" elif test -r "${file}.info"; then fname="${file}.info" elif test -r "${file}.gz"; then fname="${file}.gz" elif test -r "${file}.info.gz"; then fname="${file}.info.gz" else echo "$0:$LINENO: can't find info file for ${file}?">&2 continue fi # if we found something and aren't skipping, do the entry if test "$skip"; then continue fi infoname=`echo $file|sed -e 's/.info$//'` entry=`zcat -f $fname|\ sed -e '1,/START-INFO-DIR-ENTRY/d'\ -e '/END-INFO-DIR-ENTRY/,$d'` if [ ! -z "${entry}" ]; then echo "${entry}" else echo "* ${infoname}: (${infoname})." fi Total=`expr "$Total" + "1"` done done }>$DIR_FILE<$SKELETON Reason being that if you strace it from the host, you get endless reams of output like: 12:41:33.244228 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000011> 12:41:33.244278 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.244338 faccessat(AT_FDCWD, "can't", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.244402 faccessat(AT_FDCWD, "can't.info", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.244465 faccessat(AT_FDCWD, "can't.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.244528 faccessat(AT_FDCWD, "can't.info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000021> 12:41:33.244613 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.244661 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_DUPFD, 10) = 12</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.244717 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000011> 12:41:33.244771 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_SETFD, FD_CLOEXEC) = 0 <0.000011> 12:41:33.244813 dup2(2</tmp/rootfs/dev/null>, 1</tmp/rootfs/usr/share/info/dir>) = 1</tmp/rootfs/dev/null> <0.000011> 12:41:33.244860 fcntl(2</tmp/rootfs/dev/null>, F_GETFD) = 0 <0.000012> 12:41:33.244910 write(1</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for can't?\n", 60) = 60 <0.000020> 12:41:33.244972 dup2(12</tmp/rootfs/usr/share/info/dir>, 1</tmp/rootfs/dev/null>) = 1</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.245029 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0x1 (flags FD_CLOEXEC) <0.000011> 12:41:33.245076 close(12</tmp/rootfs/usr/share/info/dir>) = 0 <0.000011> 12:41:33.245131 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000012> 12:41:33.245181 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.245240 faccessat(AT_FDCWD, "find", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.245301 faccessat(AT_FDCWD, "find.info", R_OK) = -1 ENOENT (No such file or directory) <0.000013> 12:41:33.245362 faccessat(AT_FDCWD, "find.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000015> 12:41:33.245425 faccessat(AT_FDCWD, "find.info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.245491 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.245538 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_DUPFD, 10) = 12</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.245604 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000011> 12:41:33.245651 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_SETFD, FD_CLOEXEC) = 0 <0.000011> 12:41:33.245697 dup2(2</tmp/rootfs/dev/null>, 1</tmp/rootfs/usr/share/info/dir>) = 1</tmp/rootfs/dev/null> <0.000012> 12:41:33.245761 fcntl(2</tmp/rootfs/dev/null>, F_GETFD) = 0 <0.000011> 12:41:33.245809 write(1</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for find?\n", 59) = 59 <0.000020> 12:41:33.245869 dup2(12</tmp/rootfs/usr/share/info/dir>, 1</tmp/rootfs/dev/null>) = 1</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.245926 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0x1 (flags FD_CLOEXEC) <0.000012> 12:41:33.245979 close(12</tmp/rootfs/usr/share/info/dir>) = 0 <0.000011> 12:41:33.246034 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000011> 12:41:33.246084 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.246142 faccessat(AT_FDCWD, "info", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.246206 faccessat(AT_FDCWD, "info.info", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.246266 faccessat(AT_FDCWD, "info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.246329 faccessat(AT_FDCWD, "info.info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.246395 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.246443 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_DUPFD, 10) = 12</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.246498 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000011> 12:41:33.246562 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_SETFD, FD_CLOEXEC) = 0 <0.000016> 12:41:33.246618 dup2(2</tmp/rootfs/dev/null>, 1</tmp/rootfs/usr/share/info/dir>) = 1</tmp/rootfs/dev/null> <0.000012> 12:41:33.246675 fcntl(2</tmp/rootfs/dev/null>, F_GETFD) = 0 <0.000012> 12:41:33.246726 write(1</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for info?\n", 59) = 59 <0.000030> 12:41:33.246792 dup2(12</tmp/rootfs/usr/share/info/dir>, 1</tmp/rootfs/dev/null>) = 1</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.246842 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0x1 (flags FD_CLOEXEC) <0.000011> 12:41:33.246883 close(12</tmp/rootfs/usr/share/info/dir>) = 0 <0.000011> 12:41:33.246932 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000011> 12:41:33.246974 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.247025 faccessat(AT_FDCWD, "file", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.247082 faccessat(AT_FDCWD, "file.info", R_OK) = -1 ENOENT (No such file or directory) <0.000013> 12:41:33.247136 faccessat(AT_FDCWD, "file.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.247190 faccessat(AT_FDCWD, "file.info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.247248 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.247290 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_DUPFD, 10) = 12</tmp/rootfs/usr/share/info/dir> <0.000011> 12:41:33.247337 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000011> 12:41:33.247377 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_SETFD, FD_CLOEXEC) = 0 <0.000011> 12:41:33.247417 dup2(2</tmp/rootfs/dev/null>, 1</tmp/rootfs/usr/share/info/dir>) = 1</tmp/rootfs/dev/null> <0.000011> 12:41:33.247465 fcntl(2</tmp/rootfs/dev/null>, F_GETFD) = 0 <0.000011> 12:41:33.247506 write(1</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for file?\n", 59) = 59 <0.000016> 12:41:33.247572 dup2(12</tmp/rootfs/usr/share/info/dir>, 1</tmp/rootfs/dev/null>) = 1</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.247622 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0x1 (flags FD_CLOEXEC) <0.000011> 12:41:33.247663 close(12</tmp/rootfs/usr/share/info/dir>) = 0 <0.000011> 12:41:33.247711 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000011> 12:41:33.247762 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.247816 faccessat(AT_FDCWD, "for", R_OK) = -1 ENOENT (No such file or directory) <0.000015> 12:41:33.247877 faccessat(AT_FDCWD, "for.info", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.247938 faccessat(AT_FDCWD, "for.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.248001 faccessat(AT_FDCWD, "for.info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.248064 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.248112 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_DUPFD, 10) = 12</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.248167 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.248215 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_SETFD, FD_CLOEXEC) = 0 <0.000011> 12:41:33.248261 dup2(2</tmp/rootfs/dev/null>, 1</tmp/rootfs/usr/share/info/dir>) = 1</tmp/rootfs/dev/null> <0.000012> 12:41:33.248314 fcntl(2</tmp/rootfs/dev/null>, F_GETFD) = 0 <0.000012> 12:41:33.248364 write(1</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for for?\n", 58) = 58 <0.000019> 12:41:33.248426 dup2(12</tmp/rootfs/usr/share/info/dir>, 1</tmp/rootfs/dev/null>) = 1</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.248483 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0x1 (flags FD_CLOEXEC) <0.000012> 12:41:33.248529 close(12</tmp/rootfs/usr/share/info/dir>) = 0 <0.000012> 12:41:33.248590 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000011> 12:41:33.248640 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.248697 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:?", R_OK) = -1 ENOENT (No such file or directory) <0.000016> 12:41:33.248770 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:?.info", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.248827 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:?.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.248882 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:?.info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.248941 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.248992 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_DUPFD, 10) = 12</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.249043 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000012> 12:41:33.249089 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_SETFD, FD_CLOEXEC) = 0 <0.000012> 12:41:33.249138 dup2(2</tmp/rootfs/dev/null>, 1</tmp/rootfs/usr/share/info/dir>) = 1</tmp/rootfs/dev/null> <0.000012> 12:41:33.249192 fcntl(2</tmp/rootfs/dev/null>, F_GETFD) = 0 <0.000012> 12:41:33.249241 write(1</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for /usr/sbin/fix-info-dir:225:??\n", 83) = 83 <0.000019> 12:41:33.249300 dup2(12</tmp/rootfs/usr/share/info/dir>, 1</tmp/rootfs/dev/null>) = 1</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.249354 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0x1 (flags FD_CLOEXEC) <0.000012> 12:41:33.249401 close(12</tmp/rootfs/usr/share/info/dir>) = 0 <0.000011> 12:41:33.249453 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000011> 12:41:33.249501 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.249562 ioctl(0</tmp/rootfs/dev/null>, TCGETS, 0x7ffd85c083f0) = -1 ENOTTY (Inappropriate ioctl for device) <0.000017> 12:41:33.249630 lseek(0</tmp/rootfs/dev/null>, 0, SEEK_CUR) = 225875725 <0.000012> 12:41:33.249678 read(0</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for can't?\n/usr/sbin/fix-info-dir:225: can't find info file for find?\n/usr/sbin", 128) = 128 <0.000018> 12:41:33.249738 lseek(0</tmp/rootfs/dev/null>, -68, SEEK_CUR) = 225875785 <0.000013> 12:41:33.249799 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 <0.000012> 12:41:33.249849 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000011> 12:41:33.249929 openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3</tmp/rootfs/usr/share/info> <0.000025> 12:41:33.250000 fstat(3</tmp/rootfs/usr/share/info>, {st_dev=makedev(0, 0x30), st_ino=5235214, st_mode=S_IFDIR|0755, st_nlink=2, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=17, st_atime=1638378668 /* 2021-12-01T12:11:08.057392593-0500 */, st_atime_nsec=57392593, st_mtime=1638378668 /* 2021-12-01T12:11:08.049392731-0500 */, st_mtime_nsec=49392731, st_ctime=1638378668 /* 2021-12-01T12:11:08.049392731-0500 */, st_ctime_nsec=49392731}) = 0 <0.000013> 12:41:33.250070 getdents64(3</tmp/rootfs/usr/share/info>, [{d_ino=5235214, d_off=10, d_reclen=24, d_type=DT_DIR, d_name="."}, {d_ino=8494752, d_off=12, d_reclen=24, d_type=DT_DIR, d_name=".."}, {d_ino=5245536, d_off=512, d_reclen=24, d_type=DT_REG, d_name="dir"}], 32768) = 72 <0.000015> 12:41:33.250132 getdents64(3</tmp/rootfs/usr/share/info>, [], 32768) = 0 <0.000012> 12:41:33.250185 close(3</tmp/rootfs/usr/share/info>) = 0 <0.000014> 12:41:33.250257 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:", R_OK) = -1 ENOENT (No such file or directory) <0.000015> 12:41:33.250322 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:.info", R_OK) = -1 ENOENT (No such file or directory) <0.000015> 12:41:33.250387 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000015> 12:41:33.250452 faccessat(AT_FDCWD, "/usr/sbin/fix-info-dir:225:.info.gz", R_OK) = -1 ENOENT (No such file or directory) <0.000014> 12:41:33.250519 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000023> 12:41:33.250579 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_DUPFD, 10) = 12</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.250627 fcntl(1</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0 <0.000011> 12:41:33.250668 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_SETFD, FD_CLOEXEC) = 0 <0.000012> 12:41:33.250714 dup2(2</tmp/rootfs/dev/null>, 1</tmp/rootfs/usr/share/info/dir>) = 1</tmp/rootfs/dev/null> <0.000012> 12:41:33.250777 fcntl(2</tmp/rootfs/dev/null>, F_GETFD) = 0 <0.000012> 12:41:33.250827 write(1</tmp/rootfs/dev/null>, "/usr/sbin/fix-info-dir:225: can't find info file for /usr/sbin/fix-info-dir:225:?\n", 82) = 82 <0.000027> 12:41:33.250900 dup2(12</tmp/rootfs/usr/share/info/dir>, 1</tmp/rootfs/dev/null>) = 1</tmp/rootfs/usr/share/info/dir> <0.000012> 12:41:33.250958 fcntl(12</tmp/rootfs/usr/share/info/dir>, F_GETFD) = 0x1 (flags FD_CLOEXEC) <0.000012> 12:41:33.251008 close(12</tmp/rootfs/usr/share/info/dir>) = 0 <0.000011>
Thank you, reproduced. I've already have seen this in Fedora, the issue appears when /dev/null doesn't exist. Creating simple ' /tmp/rootfs/dev/null' in /tmp/test/test.sh (comment #8) would workaround it.
another workaround I found is, instead of `ca-certificates`, if I use `openssl-libs` package, which contains ca-certificates & some other light dependencies, build successfully passes.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (texinfo bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:2118