[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Possible to log %post when using chroot?
- From: Pat <patchu1 yahoo com>
- To: Discussion list about Kickstart <kickstart-list redhat com>, "Hearn, Stan J." <stan hearn nscorp com>
- Cc:
- Subject: RE: Possible to log %post when using chroot?
- Date: Fri, 15 Aug 2008 12:32:14 -0700 (PDT)
--- On Thu, 8/14/08, Hearn, Stan J. <stan hearn 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]