Skip site navigation (1)Skip section navigation (2)
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

--=-IpGpb+WBOu1V8HjxM4zm
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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=3D"\${_name}"
jail_rootdir=3D"\${_hostname}"
jail_rootdir=3D"\${_ip}"

jail_mount_list=3D"ports" or
jail_<jname>_mount_list=3D"ports"

jail_mount_ports_args=3D"-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

--=20
Florent Thoumie
flz@FreeBSD.org
FreeBSD Committer

--=-IpGpb+WBOu1V8HjxM4zm
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEoAD6MxEkbVFH3PQRAgHrAJ9ujMOsGCNnU/enIo5Du5Td9QKqXQCggZak
eIm8EswbGoM/3OOAxJrjKCI=
=Rk6J
-----END PGP SIGNATURE-----

--=-IpGpb+WBOu1V8HjxM4zm--




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