Date: Mon, 26 Jun 2006 16:44:58 +0100 From: Florent Thoumie <flz@FreeBSD.org> To: freebsd-rc@FreeBSD.org Subject: RFC: new rc.d/jail changes (templating fstab entries and rootdir) Message-ID: <1151336698.39710.23.camel@mayday.esat.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
--
Florent Thoumie
flz@FreeBSD.org
FreeBSD Committer
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
iD8DBQBEoAD6MxEkbVFH3PQRAgHrAJ9ujMOsGCNnU/enIo5Du5Td9QKqXQCggZak
eIm8EswbGoM/3OOAxJrjKCI=
=Rk6J
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1151336698.39710.23.camel>
