Red Hat Bugzilla – Bug 506664
On installation from kickstart, the postinstallation doesn't show what actually happens on console
Last modified: 2010-02-23 14:03:10 EST
Description of problem:
When installating from kickstart with a %post section, the postinstallation procedure doesn't show what actually happens on console 3 (Alt-F3 during install), so you don't know if you're doing things right of if an error happens.
This makes difficult the the kickstart conception and the errors tracking.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.install from kickstart with a %post section
2.go to console 3 (Alt-F3)
Show only a message "running %%post script"
Show only a message "running %%post script" and the complete console messages during the execution
These scripts are run through execWithRedirect, and should be directing all their output to /dev/tty3 unless you say otherwise. I believe Dave was the last person to touch this code, but he's pretty swamped with storage bugs again/still at the moment. Picking someone at random...
Created attachment 349943 [details]
Postscript's output on tty3
Hi, I can see all output from the postscript on 3rd console. It seems that it isn't line buffered (text was printed only after I sent data to the stdin test command) but the output on stdout and stderr is clearly there.
Is it possible you have --log argument specified for your %post section? Or if you had used serial console, then the output went to the log also. In other cases you should see everything on the tty3.
Can you post the kickstart in question please?
Created attachment 349944 [details]
my kickstart file
(In reply to comment #2)
Well, I can see the output, but only at the end of the %post being processed, so it gives a huge load of text at a time instead giving it during the progression.
I upload the kickstart too
Ah I see now, yeah as I said it isn't line buffered. Can you test it with updates image from http://msivak.fedorapeople.org/anaconda/exec2.img please? Just append
to the kernel command line. It should fix it (it does on my test machine). If it does for you too, I'll integrate it into the main source.
(In reply to comment #5)
I just tested, I finally got the output displayed as the %post steps moves on.
It's good for me.
BTW, could you have a look on the Bug 506663 since it is also related to the %post part of the kickstart install (different problem though).
We had to update the patch to keep it to log the output of kickstart tasks. It will be included as soon as I got it reviewed.
Ok patch is commited, it will shhow up in next anaconda build (12.17)