Bug 684220 - anaconda initrd lacks /dev/stdin, /dev/stdout, /dev/stderr
Summary: anaconda initrd lacks /dev/stdin, /dev/stdout, /dev/stderr
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda
Version: 5.6
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David Cantrell
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 726828
TreeView+ depends on / blocked
 
Reported: 2011-03-11 14:11 UTC by Philip Rowlands
Modified: 2012-02-21 05:37 UTC (History)
1 user (show)

Fixed In Version: anaconda-11.1.2.243-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 05:37:20 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0197 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2012-02-20 14:54:06 UTC

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


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