From owner-freebsd-questions@FreeBSD.ORG Fri Apr 6 00:54:07 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46F9F1065670 for ; Fri, 6 Apr 2012 00:54:07 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id EC0FE8FC12 for ; Fri, 6 Apr 2012 00:54:06 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.182]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 27A625C22 for ; Fri, 6 Apr 2012 11:07:36 +1000 (EST) Message-ID: <4F7E3EA6.1050303@herveybayaustralia.com.au> Date: Fri, 06 Apr 2012 10:53:58 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <47BE4A7A-E5E4-498B-A994-9CC331D3CA85@todoo.biz> In-Reply-To: <47BE4A7A-E5E4-498B-A994-9CC331D3CA85@todoo.biz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Problem installing bind in jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2012 00:54:07 -0000 On 04/06/12 03:24, bsd wrote: > Hi, > > I have followed the tutorial provided in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html > I have now five jails up and running and I am very happy with the system. > > One of my jail is acting as an important DNS server and It needs to be up to date. > > I have decided to recompile bind in the latest version and I am running into a problem which is caused by bind port not following the FreeBSD requisites and trying to install things in /usr/include/isc > > > making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32 > making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include > making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include/isc > making install in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include > making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc > making install in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc > /bin/sh ../../../../mkinstalldirs /usr/include/isc > mkdir /usr/include/isc > mkdir: /usr/include/isc: Read-only file system > *** Error code 1 > > Stop in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc. > […] > > > > I am not certain of the path I should take to solve this issue… > Most probably I should simlink from the RO part of the system to the RW… but I am not 100% sure how to proceed. > > > Why is ISC trying to setup things in this location and not on /usr/local/include/ ? > > > I think I would need to simlink from the RO portion of the system /usr/include/isc to /usr/local/include/isc but I am not certain how to proceed. Assuming your replacing the base version, you cannot use symlinks but you can use a nullfs mount. You can make any part RW this way as long as its a directory. As Matthew pointed out, all is in order here. No rule breaks happening... :)