Reuse already built /usr/ubj to create a jail

Renato Botelho rbgarga at gmail.com
Fri Dec 30 05:27:20 EST 2011


On Thu, Dec 29, 2011 at 6:25 PM, Chris Rees <utisoft at gmail.com> wrote:
> On 29 Dec 2011 16:05, "Renato Botelho" <rbgarga at gmail.com> wrote:
>>
>> 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.
>>
>
> Please let me know if it works, and I can document it.

I forgot to add -I to createJail and it was built. I'll try to make another test
next year and let you know.

-- 
Renato Botelho



More information about the tinderbox-list mailing list