Fwd: createJail questions
Chris Rees
crees at marcuscom.com
Thu Jun 9 17:15:12 EDT 2011
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
;;
> 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.
> 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