atom feed4 messages in org.freebsd.freebsd-rcRFC: new rc.d/jail changes (templatin...
FromSent OnAttachments
Florent ThoumieJun 26, 2006 6:36 pm 
Florent ThoumieJul 19, 2006 12:55 pm 
Dirk EnglingJul 19, 2006 1:16 pm 
Philipp WuenscheJul 22, 2006 2:44 pm 
Subject:RFC: new rc.d/jail changes (templating fstab entries and rootdir)
From:Florent Thoumie (fl@FreeBSD.org)
Date:Jun 26, 2006 6:36:38 pm
List:org.freebsd.freebsd-rc

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