Re: Catch the error...

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

 



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

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux