Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Dec 2009 12:39:10 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Alexander Petrovsky <askjuise@gmail.com>
Cc:        jail@freebsd.org
Subject:   Re: ezjail with vimage
Message-ID:  <4B1CE95E.9060702@quip.cz>
In-Reply-To: <2ec071a80912070104i6a7a38e3labc33ee3b494cef5@mail.gmail.com>
References:  <2ec071a80912070104i6a7a38e3labc33ee3b494cef5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Petrovsky wrote:
> Hello!
> I want merge all my jails (ezjail framework) working under freebsd 7.2 to
> freebsd 8.0 with support vimage. Ezjail don't support jail_NAME_flags=""
>
> Whether, I can simply change the line in /usr/local/etc/rc.d/ezjail:
>
> # Pass control to jail script which does the actual work
> [ "${ezjail_pass}" ]&&  sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass}
>
> and add some parametres like:
>
> "jail -c vnet name=*vnet1* host.hostname=*vnet1.example.net* path=/ persist"

You can add what ever variables you want in to 
/usr/local/etc/ezjail/vnet1_example_net
It will be exported to /etc/rc.d/jail, so you can use:

export jail_vnet1_example_net_flags="my special flags here"

Or you can try to set it in /etc/rc.conf. Ezjail is not so special as it 
looks.

Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B1CE95E.9060702>