[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Catch the error...



%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!!!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]