createJail questions
Mark Johnston
markjdb at gmail.com
Thu Jun 9 17:26:32 EDT 2011
On Thu, Jun 09, 2011 at 10:08:31PM +0100, Chris Rees wrote:
> On 18 May 2011 03:03, Mark Johnston <markjdb at gmail.com> wrote:
> > Hello all,
> >
> > I just have a few questions related to creating Tinderbox jails:
> >
> > 1. Why is it required to have a jail name start with a FreeBSD major
> > release number? I spent some time looking through the README and
> > sources, and couldn't find a reason for it. For the purposes of using
> > Tinderbox at $WORK, it's preferable to use our internal branch names for
> > the jail name, and this restriction seems kind of arbitrary to me.
>
> It's in ${pb}/scripts/tc_command.sh:
>
> # Set up the chrooted environment
> osmajor=$(echo ${jail} | sed -E -e 's|(^[[:digit:]]+).*$|\1|')
> case ${osmajor} in
> 6|7|8|9) tinderbuild_setup;;
> *) echo "tinderbuild: unhandled OS version: ${osmajor}"
> tinderbuild_cleanup 1
> ;;
Well, I know where it is, but I still don't really see why it's necessary at
all. =)
>
>
> > 2. When creating a jail with UpdateCmd = USER, why does Tinderbox expect
> > to find an update.sh script in a directory that it just created
> > (jails/<jname>)? Am I supposed to create that directory manually, stick
> > an update.sh in there and then run tc createJail? Any objection to a
> > patch which adds an option to createJail which copies a user-supplied
> > update script into the jail dir?
>
> No-one has previously answered this, but I would actually be
> interested in that feature.
Ok. I have a patch for it already, and I will post it for discussion
once I've gotten my SQLite-related changes in.
>
> > 3. Any objection to another option to createJail which passes in a
> > build.sh script that knows how to build the jail (rather than just
> > executing make world or assembling a binary distro in the case of LFTP)?
>
> Not from me, but again, others may comment.
>
> Chris
More information about the tinderbox-list
mailing list