Bug 760230

Summary: Not all logs transferred to the install system
Product: [Fedora] Fedora Reporter: Alexander Todorov <atodorov>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: anaconda-maint-list, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-15 15:28:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alexander Todorov 2011-12-05 16:52:52 UTC
Description of problem:


Log files produce by %pre/%post scripts which are not written under /mnt/sysimage are not transferred to the installed system for examination. 

Can be reproduced with:

%pre --logfile /tmp/ks-pre.log
echo stdout
echo stderr 1>&2

%post --nochroot --logfile /tmp/post_no_chroot_existing_outside_sysimage.log

echo "LOG TEST: %post script outside chroot that logs to a file in existing directory outside /mnt/sysimage"
%end

%post --nochroot --logfile /tmp/non-existing-outside-sysimage/post_no_chroot_non_existing_outside_sysimage.log

echo "LOG TEST: %post script outside chroot that logs to a file in non-existing directory outside /mnt/sysimage"
%end



None of these files is available after install. 

Only log files with location under /mnt/sysimage are available.

Comment 3 David Cantrell 2011-12-07 20:03:32 UTC
This is a nice-to-have, but we'd rather do this in Fedora first and then let the next major RHEL release pick it.  Working around this in RHEL-6 is trivial.  All you need is a final %post script that does the log copying for you.

Comment 4 Chris Lumens 2012-05-15 15:28:10 UTC
Implementation of this is more complicated and ugly than I'd like on the newui branch.  In addition to a final %post script, you could also just change the log files to start with /mnt/sysimage.