Red Hat Bugzilla – Bug 124370
Copy logfiles to system after installation completion
Last modified: 2007-11-30 17:10:43 EST
Description of problem:
Some log files are copied to the system after completion of install,
but the log files containing the output of the kickstart scriptlets
is not. I believe there are a few others also. It would be very
nice if these were copied to the system (perhaps to some place like
/var/log/anaconda). Also, if I recall correctly it, the log files
for the scriplets gets overwritten by each new scriptlet (multiple %
posts leave only the last one's output). It would be handy if this
log was appended to or seperate logs created.
Other than general debuging of kickstarts going bad, this is quite
handy in a manufacturing scenario where certain logs are commonly
archived for each machine after installation and initial setup.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This is a little complicated as some people will probably want to be
able to remove the log files in their %post.
So, I did something in the middle. I now will copy /tmp/anaconda.log
-> /var/log/anaconda.log and /tmp/syslog -> /var/log/anaconda.syslog
right before %post runs. I've also implemented --log for scriptlets
so that you can log them if you'd like (note that if run with
--nochroot, the log file won't go under /mnt/sysimage unless you
specifically specify that as part of the path)
Any futher updates going on?