Hide Forgot
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.
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.
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.