RFC: new rc.d/jail changes (templating fstab entries and rootdir)

Florent Thoumie flz at xbsd.org
Wed Jul 19 12:55:28 UTC 2006


On Mon, 2006-06-26 at 16:44 +0100, Florent Thoumie wrote:
> If you're reading this mailing list attentively, you surely already
> noticed those lines in last bugmaster mail :
> 
> o [2006/06/09] conf/98758  rc  [patch] Templatize 'jail_fstab' in /etc/r
> o [2006/06/12] conf/98846  rc  [patch] Templatize 'jail_rootdir' in /etc
> 
> While I share Sergey's idea of templating things where possible, I don't
> like having %%FOO%% everywhere.
> 
> I've written a patch which seems to address both of these "issues".
> 
> Basically, it's used like this :
> 
> jail_rootdir="\${_name}"
> jail_rootdir="\${_hostname}"
> jail_rootdir="\${_ip}"
> 
> jail_mount_list="ports" or
> jail_<jname>_mount_list="ports"
> 
> jail_mount_ports_args="-t nullfs /usr/ports \${_rootdir}/usr/ports"
> 
> Obviously I preferred my way to do those things but I'd like to get some
> review before it makes it to the tree.
> 
> Patch is here : http://people.freebsd.org/~flz/local/jail-tpl.diff

Ping?

-- 
Florent Thoumie
flz at FreeBSD.org
FreeBSD Committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20060719/8a16491a/attachment.pgp


More information about the freebsd-rc mailing list