Bug 684220

Summary: anaconda initrd lacks /dev/stdin, /dev/stdout, /dev/stderr
Product: Red Hat Enterprise Linux 5 Reporter: Philip Rowlands <phr>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6CC: atodorov
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-11.1.2.243-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 05:37:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 726828    

Description Philip Rowlands 2011-03-11 14:11:22 UTC
At the end of an RHEL 5.6 install on s390, we find two interesting files in /dev:

sh-3.2# ls -l /dev/std*
-rwxr-xr-x    1 root     root            0 Mar 11 13:27 /dev/stderr
-rwxr-xr-x    1 root     root          182 Mar 11 13:27 /dev/stdout
sh-3.2# cat /dev/std*
Using config file '/etc/zipl.conf'
Building bootmap in '/boot/'
Building menu 'rh-automatic-menu'
Adding #1: IPL section 'linux' (default)
Preparing boot device: dasda (0200).
Done.

Those messages are coming from booty's call to zipl; in the absence of the usual redirects to /proc/self/fd/... the output is written to regular files.

Suggested fix (on all platforms, not just s390) is to create symlinks from /dev/std{in,out,err} within anaconda's initrd filesystem. This will also benefit %post scripts which assume those /dev entries exist.

P.S. Amusingly, the execute permission on the created files comes from python's default mode in os.open, which rhpl's executil.execWithRedirect() doesn't change.

Comment 1 RHEL Program Management 2011-08-05 12:36:09 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 4 errata-xmlrpc 2012-02-21 05:37:20 UTC
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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0197.html