Catch the error...

Matt Rose mrose at n-able.com
Mon Jun 1 20:07:39 UTC 2009


%post takes a --log= argument which catches stdout, so you could do
%post --nochroot --log=/tmp/log
...
cp /tmp/log /mnt/sysimage/tmp
%end

%post --log=/tmp/log2
...
%end

Matt

Pablo Bernasconi wrote:
> Hello to everyone,
>
> I need to catch the log/error of the %post section (the things that 
> are shown if you do* Alt + F3* while the post-script is running) and 
> send it to a file.
>
> How can I do this????
>
> My %post section:
>
> /%post --nochroot
> mkdir /mnt/sysimage/usr/src/FSR/
> cp /mnt/stage2/FSR/*  /mnt/sysimage/usr/src/FSR/
>
>
> %post
> cd /usr/src/FSR/
> tar -xvzf ....
> cd ....
> make
> make install
> ....
> ...
> ...
> eject
> %end/
>
> Please help, I have little experience
> Thank you very much!!!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20090601/50c27c24/attachment.htm>


More information about the Kickstart-list mailing list