Hide Forgot
In my %pre and %post scripts, I have this: # force output to append to the logfile exec 1>>/proc/self/fd/1 exec 2>>/proc/self/fd/2 Without these lines, /tmp/ks-script-XXXXXX.log is lossy, because interleaved stdout and stderr output clobber each other. Suggest changing iutil.execWithRedirect to open files for append, rather than write. If this is too broad, perhaps AnacondaKSScript.run() could open the logfile for appending and pass the fds to execWithRedirect.
Hmm, not much interest in this bug :( Perhaps a change to iutil:execWithRedirect to add a new named parameter, defaulting to the current behaviour, e.g def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2, searchPath = 0, root = '/', writeAppend=False): if writeAppend: mode="a" else: mode="w" ... This would probably apply to execWithCapture as well, although I don't know what calls that function.
While Red Hat welcomes bug reports on Red Hat products here in our public bugzilla database, please keep in mind that bugzilla is not a support tool or means of accessing support. If you would like technical support please visit our support portal at access.redhat.com or call us for information on subscription offerings to suit your needs.
http://www.redhat.com/archives/anaconda-devel-list/2012-January/msg00062.html http://www.redhat.com/archives/anaconda-devel-list/2012-January/msg00063.html https://bugzilla.redhat.com/show_bug.cgi?id=750710 http://git.fedorahosted.org/cgit/anaconda.git/commit/pyanaconda/iutil.py?id=f9866ac67c8d7cbd6d7310b46266dfa048b9bb70 Not a bug? If RH don't want to backport kickstart fixes to RHEL5, please just say so.
Support case 00808889 filed, as requested.
This request is out of scope for the types of updates that are being accepted for RHEL 5.10. Rather than drag this one on forever, the reality is we are likely to never change it in RHEL-5 at this point.
Hi David, I appreciate there's limited scope for work on the one remaining update to RHEL 5.10. For completeness you could change the status to DUPLICATE (I don't have permission), as this exact issue was fixed in bug 702024: * Wed Sep 07 2011 Martin Gracik <mgracik> 11.1.2.243-1 - Sanitize DASD device specifications (dcantrell) Resolves: rhbz#689470 - Add /dev/stdin, /dev/stdout, /dev/stderr to initrd.img (dcantrell) Resolves: rhbz#684220 - Single quote values in show_parms() in linuxrc.s390 (dcantrell) Resolves: rhbz#681219 - Make execWithRedirect() append to the files. (akozumpl) Resolves: rhbz#702024 and released along with fixes for my s390 bugs :)