RE: Possible to log %post when using chroot?

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

 



--- On Thu, 8/14/08, Hearn, Stan J. <stan.hearn@xxxxxxxxxx> 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


      

_______________________________________________
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