Bug 1982271 - 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
Summary: use of `< <(somecommand)` in dracut modules doesn't work (causes "/dev/fd/63:...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: lorax
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: beta
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
URL:
Whiteboard: AcceptedBlocker
: 1980910 (view as bug list)
Depends On: 1962975
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-14 15:17 UTC by Brian Lane
Modified: 2021-12-07 21:31 UTC (History)
15 users (show)

Fixed In Version: lorax-34.9.5-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1962975
Environment:
Last Closed: 2021-12-07 21:30:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.