Reuse already built /usr/ubj to create a jail
Joe Marcus Clarke
marcus at marcuscom.com
Thu Dec 29 10:59:44 EST 2011
On 12/29/11 10:26 AM, Renato Botelho wrote:
> Hello guys,
>
> I read documentation but didn't find a way to do it, so i decided
> to ask here.
>
> Is it possible to use /usr/obj from main machine to create a jail
> on tinderbox? I would like to create a jail for 10.0-current, same
> version i'm running on host machine.
>
> I saw i can use /usr/src and mount it, but i was wondering it
> would be nice to use /usr/obj and don't need to rebuild everything.
>
> Regards
No one has ever asked, and there is nothing built into the code to do
it. I suppose you're asking to mount /usr/src and /usr/obj from the
host machine, and simply do the make world bit?
I suppose you might be able to do this using the preJailBuild Hook.
With /usr/src already mounted, mount /usr/obj under ${jail}/obj. We are
already passing NO_CLEAN to the make world process, so it should reuse
most of what's been built.
Joe
--
PGP Key : http://www.marcuscom.com/pgp.asc
More information about the tinderbox-list
mailing list