Bug 1982271

Summary: use of `< <(somecommand)` in dracut modules doesn't work (causes "/dev/fd/63: No such file or directory" errors), breaks stage2 retrieval and hence Rawhide composes
Product: Red Hat Enterprise Linux 9 Reporter: Brian Lane <bcl>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 9.0CC: anaconda-maint-list, aschultz, bcl, dracut-maint-list, extras-qa, johannbg, jonathan, jstodola, kevin, mlewando, pbrobinson, reallylongword, robatino, rvykydal, zbyszek
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedBlocker
Fixed In Version: lorax-34.9.5-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1962975 Environment:
Last Closed: 2021-12-07 21:30:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1962975    
Bug Blocks:    

Description Brian Lane 2021-07-14 15:17:24 UTC
/etc/pki/ content isn't being installed because newer dracut depends on bash features that expect a real chroot when dracut runs.



I need to backport upstream commit https://github.com/weldr/lorax/commit/322a810403449118116fc9ea868bb3e1ed5e717c so that the new version of dracut has a proper chroot.





+++ This bug was initially created as a clone of Bug #1962975 +++

[bcl - snipped fedora comments about debugging this]


--- Additional comment from Harald Hoyer on 2021-05-21 01:02:26 PDT ---

Anyway, the real fix would be to fix the chroot setup, where the symlink `/dev/fd -> /proc/self/fd` is missing.

--- Additional comment from Harald Hoyer on 2021-05-21 08:26:42 PDT ---

See: https://github.com/weldr/lorax/pull/1149

with my POC patch, lorax builds..

# lorax -p Fedora -v 34 -r 34           -s http://dl.fedoraproject.org/pub/fedora/linux/releases/34/Everything/x86_64/os/           -s https://dl.fedoraproject.org/pub/fedora/linux/updates/34/Everything/x86_64/      -s https://dl.fedoraproject.org/pub/fedora/linux/updates/testing/34/Everything/x86_64/     ./results/

# lsinitrd ./results/isolinux/initrd.img|fgrep ca-bundle
-r--r--r--   1 root     root       216090 May 18 10:36 etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
lrwxrwxrwx   1 root     root           46 May 18 10:36 etc/pki/tls/certs/ca-bundle.crt -> ../../ca-trust/extracted/pem/tls-ca-bundle.pem

Comment 1 Jiri Konecny 2021-07-14 15:27:40 UTC
*** Bug 1980910 has been marked as a duplicate of this bug. ***

Comment 2 Brian Lane 2021-07-14 19:02:54 UTC
https://github.com/weldr/lorax/pull/1166