Possible to log %post when using chroot?

Pat patchu1 at yahoo.com
Fri Aug 15 19:32:14 UTC 2008


--- On Thu, 8/14/08, Hearn, Stan J. <stan.hearn at nscorp.com> wrote:
> 
> Remember that /root/post.log must exist before the chroot
> is created.
> And the command is relative to the non-chrooted file
> structure.
> 
> The chroot will be /tmp/sysimage (at least for RHEL).
> 
> Most people I find put the log in /tmp
> 
> %post --log=/tmp/post.log
> ...commands here....
> 
> %post nochroot
> mv /tmp/post.log /mnt/sysimage/var/log/post.log
> 
> Does that make sense?  If you want to put it in root's
> home, you should
> use the file name of /tmp/sysimage/root/post.log.  You
> wouldn't need to
> move it afterward.
> 
> Regards,
> Stan Hearn


Thanks for the explanation Stan, I understand it now. BTW, for RHEL 5.2, the chroot is /mnt/sysimage as /tmp/sysimage does not exist.  


Pat


      




More information about the Kickstart-list mailing list