From owner-freebsd-rc@FreeBSD.ORG Mon Jun 26 18:36:59 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81B7016A40A for ; Mon, 26 Jun 2006 18:36:59 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 205EF4435E for ; Mon, 26 Jun 2006 15:45:22 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by smtp6-g19.free.fr (Postfix) with ESMTP id B25AB22541 for ; Mon, 26 Jun 2006 17:45:17 +0200 (CEST) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 391631196E for ; Mon, 26 Jun 2006 17:45:16 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01255-01 for ; Mon, 26 Jun 2006 17:45:03 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id E252A114B5 for ; Mon, 26 Jun 2006 17:44:59 +0200 (CEST) From: Florent Thoumie To: freebsd-rc@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-IpGpb+WBOu1V8HjxM4zm" Date: Mon, 26 Jun 2006 16:44:58 +0100 Message-Id: <1151336698.39710.23.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Subject: RFC: new rc.d/jail changes (templating fstab entries and rootdir) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:36:59 -0000 --=-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__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--