Newbie questions about Kickstart
Donald Murray, P.Eng.
donaldm314 at gmail.com
Fri May 12 12:45:55 UTC 2006
On 5/10/06, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
*SNIP*
>
> (3) where does the output of %post get logged? vt3? But not a file?
In my kickstart %post, I do the following:
%post
(
# Switch to vt 3, so we can watch the sparks fly.
chvt 3
# Print shell input lines as they are read.
set -v
# Do lots of cool things.
) 2>&1 | tee /root/kickstart-post.log
# Back to X for the reboot screen.
chvt 7
My %post is run in a subshell, and all output is captured in
a log file. Because it's piped to tee, we see the same output
on the screen.
If you are doing text-only installs, you can skip the chvt.
More information about the Kickstart-list
mailing list