From owner-cvs-src@FreeBSD.ORG Wed Oct 6 23:48:29 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F12C416A4CE; Wed, 6 Oct 2004 23:48:28 +0000 (GMT) Received: from daintree.corp.yahoo.com (daintree.corp.yahoo.com [216.145.52.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8E4D43D1D; Wed, 6 Oct 2004 23:48:28 +0000 (GMT) (envelope-from peter@yahoo-inc.com) Received: by daintree.corp.yahoo.com (Postfix, from userid 2154) id BCD3A8803; Wed, 6 Oct 2004 16:48:28 -0700 (PDT) From: Peter Wemm To: Doug Barton Date: Wed, 6 Oct 2004 16:48:28 -0700 User-Agent: KMail/1.6.2 References: <200410051303.i95D38Nl047864@repoman.freebsd.org> <20041005230204.5401f0be@dev.lan.Awfulhak.org> <20041005164914.U3095@bo.vpnaa.bet> In-Reply-To: <20041005164914.U3095@bo.vpnaa.bet> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410061648.28445.peter@wemm.org> cc: src-committers@freebsd.org cc: re@freebsd.org cc: Brian Somers cc: cvs-all@freebsd.org cc: Ruslan Ermilov cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/etc Makefile X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 23:48:29 -0000 On Tuesday 05 October 2004 04:57 pm, Doug Barton wrote: > On Tue, 5 Oct 2004, Brian Somers wrote: > > On Tue, 5 Oct 2004 20:20:56 +0300, Ruslan Ermilov wrote: > >>> Shouldn't this be: > >>> > >>> ln -fhs ../var/named/etc/namedb ${DESTDIR}/etc/namedb > >> > >> No. > > > > If I mount an alternate filesystem hierarchy somewhere, isn't it a > > bit useless/dangerous for symlinks to point outside of it? > > The attached patch combines the best of the various ideas that have > been disucssed on this topic. > > 1. Incorporates Ruslan's improvements to where things are done > related to the symlink in src/etc/Makefile. > > 2. Incorporates Brian's suggestion to make the link relative. This is > the best way I can see to make it work as expected in all cases, > including complete alternate filesystems. It should also solve the > release engineering problem. > > 3. Add a new knob, NO_BIND_MTREE, as suggested by the folks who > already have stuff in /var/named that they don't want me to mess > with. :) > > 4. Updates make.conf(5) with the new stuff, and corrects a few paths > that have changed since I last updated it. > > If everyone finds this acceptable, I will commit it, and then ask re@ > for permission to MFC it, hopefully before 5-RC1. > > Thanks to everyone who contributed to this train of thought. > > Doug I still hate the whole thing. Why can't we have a 'BIND_NO_CHROOT' flag or something like that which puts things in the original place? I tinkered around with it before, it wasn't hard to do. As a bonus, it stops mergemaster from trying to destroy a working setup and makes it update things in the usual place. I was also intending to experiment with having the BIND_NO_CHROOT flag propagate to defaults/rc.conf so that it only needs to be set in a single place. BTW: the reason I hate this is because I mount /var rw,noexec,nodev on my gateway boxes, and everything else readonly after boot. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5