Bug 1009596

Summary: [kickstart] Cannot use process substitution even if interpreter set to bash
Product: Red Hat Enterprise Linux 6 Reporter: Jan Pokorný [poki] <jpokorny>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-18 18:38:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jan Pokorný [poki] 2013-09-18 16:40:20 UTC
Cannot get kickstart file containing process substitution in %post
to work correctly.  Explicitly setting interpreter (--interpreter)
to /bin/bash won't help.

Either I am missing something or this is a bug.

Comment 3 Jan Pokorný [poki] 2013-09-18 18:11:02 UTC
Found /tmp/ks-script-wauWIy (standalone %post section) and the respective
/tmp/ks-script-wauWIy.log states:

> cat: /dev/fd/63: No such file or directory
> cat: /dev/fd/62: No such file or directory
> tail: write error: Broken pipe

(where tail is one of the two commands used for process substitutions)

Looks like the chroot environment is not built properly incl. /dev
hierarchy (if possible, indeed, not a chroot expert), effectively
preventing process substitution?  If it's a known limitation, it doesn't
seem to be properly documented.  Definitely more desired would be to
prevent any such artificial and unobvious limitations
(process substitution is a standard feature of bash).

Comment 4 Jan Pokorný [poki] 2013-09-18 18:38:49 UTC
Oh, [bug 814850].

*** This bug has been marked as a duplicate of bug 814850 ***