Bug 506664 - On installation from kickstart, the postinstallation doesn't show what actually happens on console
Summary: On installation from kickstart, the postinstallation doesn't show what actual...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Martin Sivák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-18 08:37 UTC by stef
Modified: 2010-02-23 19:03 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-23 19:03:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Postscript's output on tty3 (16.68 KB, image/png)
2009-06-30 12:15 UTC, Martin Sivák
no flags Details
my kickstart file (7.37 KB, application/octet-stream)
2009-06-30 12:26 UTC, stef
no flags Details

Description stef 2009-06-18 08:37:20 UTC
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):


How reproducible:

Always

Steps to Reproduce:
1.install from kickstart with a %post section
2.go to console 3 (Alt-F3)
3.
  
Actual results:

Show only a message "running %%post script"

Expected results:

Show only a message "running %%post script" and the complete console messages during the execution

Additional info:

Comment 1 Chris Lumens 2009-06-29 17:43:18 UTC
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...

Comment 2 Martin Sivák 2009-06-30 12:15:42 UTC
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?

Comment 3 stef 2009-06-30 12:26:50 UTC
Created attachment 349944 [details]
my kickstart file

Comment 4 stef 2009-06-30 12:27:41 UTC
(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

Comment 5 Martin Sivák 2009-06-30 13:07:31 UTC
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

updates=http://msivak.fedorapeople.org/anaconda/exec2.img

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.

Comment 6 stef 2009-06-30 14:23:15 UTC
(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).

Comment 8 Martin Sivák 2009-08-21 13:02:05 UTC
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.

Comment 9 Martin Sivák 2009-08-26 12:33:58 UTC
Ok patch is commited, it will shhow up in next anaconda build (12.17)


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