Bug 760230 - Not all logs transferred to the install system
Summary: Not all logs transferred to the install system
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-05 16:52 UTC by Alexander Todorov
Modified: 2012-05-15 15:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 15:28:10 UTC
Type: ---


Attachments (Terms of Use)

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.


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