Bug 84635

Summary: RFE: Logging %pre/%post actions
Product: [Retired] Red Hat Linux Reporter: Matthew Galgoci <mgalgoci>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 9Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-05 03:05:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Matthew Galgoci 2003-02-19 20:37:45 UTC
Description of problem:

currently the commands in the %post section of kickstart are not logged to
anywhere, making debugging kickstarts a royal pain in the ass.

In my kickstarts, I currently do the following to set log the output and also
set up the default environemt as root's environment:

%post

su - root -c "(

foo shell commands as root here....

)" 1>/root/post_install.log 2>&1

Comment 1 Michael Fulbright 2003-02-20 22:59:30 UTC
Is this an RFE for logging of what happens in the %post and %pre?


Comment 2 Matthew Galgoci 2003-02-20 23:05:26 UTC
Yes, concider this an RFE against loggint what happens in %pre and %post

Defer this as needed, its not critical, but its something that we already do
in most of our kickstarts. Other folks might find it useful too.

Comment 3 Jeremy Katz 2004-10-05 03:05:50 UTC
Added this today.  Add --log to %pre and %post.