From owner-freebsd-doc@FreeBSD.ORG Wed May 13 07:13:10 2009 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44A6E106564A for ; Wed, 13 May 2009 07:13:10 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtpfb1-g21.free.fr (smtpfb1-g21.free.fr [212.27.42.9]) by mx1.freebsd.org (Postfix) with ESMTP id C07AE8FC1D for ; Wed, 13 May 2009 07:13:07 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by smtpfb1-g21.free.fr (Postfix) with ESMTP id 87C3777D22D for ; Wed, 13 May 2009 08:57:39 +0200 (CEST) Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id 6D2FC4C8020; Wed, 13 May 2009 08:57:29 +0200 (CEST) Received: from endor.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp4-g21.free.fr (Postfix) with ESMTP id 9377F4C8169; Wed, 13 May 2009 08:57:27 +0200 (CEST) Received: from obiwan.tataz.chchile.org (obiwan.tataz.chchile.org [192.168.1.222]) by endor.tataz.chchile.org (Postfix) with ESMTP id CE4DB33E61; Wed, 13 May 2009 06:56:50 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id B510F5082A; Wed, 13 May 2009 08:56:50 +0200 (CEST) Date: Wed, 13 May 2009 08:56:50 +0200 From: Jeremie Le Hen To: Doug Barton Message-ID: <20090513065650.GF45358@obiwan.tataz.chchile.org> References: <20090510165737.GB88857@obiwan.tataz.chchile.org> <4A07AF92.1040309@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A07AF92.1040309@FreeBSD.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-doc@FreeBSD.org, freebsd-current@FreeBSD.org, Jeremie Le Hen Subject: Re: New mergemaster option -I, failsafe install files X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 07:13:10 -0000 On Sun, May 10, 2009 at 09:54:42PM -0700, Doug Barton wrote: > Jeremie Le Hen wrote: > > Hi Doug, > > > > As you may guess from my multiple emails, I'm in the process of > > upgrading my jails :-). > > > > Since I have one jail per service, a very few number of configuration > > files are modified on each jail. As most of user of FreeBSD I think, > > I'm used to run "mergemaster -iU" to automate the process as much as > > possible. The problem with service jails (chapter 15.6.1 of the > > handbook) is that / is read-only mounted on all jails, /etc /var /root > > and a few other places being symlinks to /s, the private read-write > > space of each jail. Thus when mergemaster tries to update > > /boot/devices.hints it fails and abort. > > I think the way to solve this problem would be with an > MM_PRE_COMPARE_SCRIPT that deletes /boot/device.hints (and any other > relevant files) from the temproot. If they are not present in that > directory when the comparison starts then it's a non-issue. Actually, /boot belongs to the read/only nullfs mount, so it is not possible to use MM_PRE_COMPARE_SCRIPT from the jail. The only way to handle this currently is to remove /boot from the jail template. I'm Cc:ing -doc@ because chapter 15.6.1 of the handbook (service jails) needs to be updated to remove /boot from the jail template "mroot". Thanks. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >