Subject: Re: bash + chroot
To: Chris <rtschrisp@earthlink.net>
From: Julio Merino <jmmv@menta.net>
List: netbsd-help
Date: 12/23/2002 09:14:48
On Mon, 23 Dec 2002 04:13:56 +0000 (UTC)
Chris <rtschrisp@earthlink.net> wrote:

> Greetings,
> 
> 	This may be OT but ill try :) Im writing a script to build a bunch
> of source, and at a particular section of the script, I would like to
> chroot a directory, and compile a few packages within the chroot
> enviroment. I am writing the script for bash. From what I have been doing
> it seems as if my script will do the chroot, but the compile will start
> after the chrooted enviroment is exited. Any ideas? I know I could have
> the user chroot then run another script in the chrooted enviroment, but id
> rather automate everything :)

pkgsrc/pkgtools/pkg_comp will do what you want. You can even call it from your
script, (I currently do that to build all packages I want on my machine).

HTH

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/