From owner-freebsd-current@FreeBSD.ORG Sun Nov 29 19:34:13 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D7E71065676 for ; Sun, 29 Nov 2009 19:34:13 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (host.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id A39F98FC0C for ; Sun, 29 Nov 2009 19:34:12 +0000 (UTC) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id nATJY7oV072775 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Nov 2009 20:34:11 +0100 (CET) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <4B12CCA8.7050808@omnilan.de> Date: Sun, 29 Nov 2009 20:34:00 +0100 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Thunderbird 2.0.0.23 (X11/20090906) MIME-Version: 1.0 To: freebsd-current@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8FACEF62C489845756297F80" Subject: named, VARMFS=yes and FILESDIR X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2009 19:34:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8FACEF62C489845756297F80 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Hello, while building an embedded slave DNS I recognized that running named out = of the box with VARMFS enabled would fail. Now I could easily fix it for my device only, but I think it's better to = solve it upstream. VARMFS=3DYes is a standard option, likewise named_enable. Short description of the problem: When rc detects non-writabel /var or VARMFS is set to yes, a new /var=20 tree gets populated. This comes without config, hint file and likewise=20 for /var/named/namedb, but /etc/namedb is a symlink to /var/named/namedb.= rc.d/named could easily be supplemented with the neccessary checks, but=20 we don't have the needed files outside of /var. My idea is to create a namedb directory in /usr/share (like there's one=20 for sendmail) with duplicate entries of src/etc/namedb Unfortunately I couldn't find out where FILESDIR is processed in the bsd = build stages. If the idea is plausable, how do I best install /usr/share/namedb? src/etc/namedb is entered at DISTRIBUTION target, right? Id highly appreciate if somebody who's familar with the build stages=20 could give me some hints. Thanks, -Harry P.S.: named_conf definitions in rc.conf get lost. Here's the patch: --- etc/rc.d/named.orig 2009-09-13 20:11:34.000000000 +0200 +++ etc/rc.d/named 2009-09-13 21:38:29.000000000 +0200 @@ -264,6 +284,6 @@ # required_dirs=3D"$named_chrootdir" # if it is set, it must exist pidfile=3D"${named_pidfile:-/var/run/named/pid}" -command_args=3D"-u ${named_uid:=3Droot}" +command_args=3D"-c $named_conf -u ${named_uid:=3Droot}" --------------enig8FACEF62C489845756297F80 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAksSzK8ACgkQLDqVQ9VXb8iOegCfQ/HP+m8qcvXjasaKGZ/LlCOB VMcAoK6paCjU5hupBHMoJhhbrqwez7GG =hY+j -----END PGP SIGNATURE----- --------------enig8FACEF62C489845756297F80--