Catch the error...
Kyle Powell
kpowell at redhat.com
Tue Jun 2 06:11:22 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kyle Powell wrote:
> Run your scripts in a subshell and redirect STDOUT and STDERR to a log file.
>
> %post --nochroot
> (
> mkdir /mnt/sysimage/usr/src/FSR/
> cp /mnt/stage2/FSR/* /mnt/sysimage/usr/src/FSR/
> ) 2>&1 > /mnt/sysimage/root/ks-post.log
>
> %post
> (
> cd /usr/src/FSR/
> tar -xvzf ....
> cd ....
> make
> make install
> ....
> eject
> ) 2>&1 > /root/ks-post.log
Oops, you'll want to append here or you'll overwrite the log from the first
nochroot post...
eject
) 2>&1 >> /root/ks-post.log
- --
Kyle Powell | Red Hat | Senior Consultant, RHCE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFKJMKK7pTtanQdBU4RAvFqAJ0efE02BeZl5GPu2RHNHGrOUpH5SACfaSk2
0FKH54/O67F98/Bspznq6e4=
=Tf07
-----END PGP SIGNATURE-----
More information about the Kickstart-list
mailing list