Reuse already built /usr/ubj to create a jail
Renato Botelho
rbgarga at gmail.com
Thu Dec 29 11:04:40 EST 2011
On Thu, Dec 29, 2011 at 1:59 PM, Joe Marcus Clarke <marcus at marcuscom.com> wrote:
> 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.
Nice, i'll give it a try.
--
Renato Botelho
More information about the tinderbox-list
mailing list