From owner-freebsd-current@FreeBSD.ORG Sun May 3 12:53:29 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D9D5D3D; Sun, 3 May 2015 12:53:29 +0000 (UTC) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mailhost.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 42CA51A7D; Sun, 3 May 2015 12:53:28 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 4EE8A358C68; Sun, 3 May 2015 14:53:25 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 3744728494; Sun, 3 May 2015 14:53:25 +0200 (CEST) Date: Sun, 3 May 2015 14:53:25 +0200 From: Jilles Tjoelker To: Wolfgang Zenker Cc: freebsd-current@freebsd.org, Will Andrews , Garrett Cooper Subject: Re: mergemaster failing with read-only /usr/src Message-ID: <20150503125325.GA70576@stack.nl> References: <20150503120349.GA42415@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150503120349.GA42415@lyxys.ka.sub.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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, 03 May 2015 12:53:29 -0000 On Sun, May 03, 2015 at 02:03:49PM +0200, Wolfgang Zenker wrote: > I'm trying to update this system: > FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Mon Apr 13 03:48:04 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips > Source for that was probably from about April 11th. I sucessfully built > world and kernel, ran mergemaster -p and make installworld on rev 282299 > but then mergemaster fails with: > # mergemaster -iFU > *** Creating the temporary root environment in /var/tmp/temproot > *** /var/tmp/temproot ready for use > *** Creating and populating directory structure in /var/tmp/temproot > /bin/sh: cannot create routing_test.tmp: Read-only file system > *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to > the temproot environment > Filesystems are mounted like this: > # mount > /dev/da0s2a on / (ufs, local, noatime) > devfs on /dev (devfs, local, multilabel) > /dev/da0s1 on /boot (msdosfs, local) > vulcan.lyx:/usr/src11 on /usr/src (nfs, read-only) > vulcan.lyx:/var/obj/11/mips64 on /usr/obj (nfs) > This used to work before. Any ideas, any further info I could provide? This broke after a test was added for etc/rc.d/. Without special code, this causes these tests to be built and installed as part of mergemaster/etcmerge, like other parts of etc. As a workaround you can do: echo make -C etc obj all | make buildenv on the build machine after make buildworld. Then mergemaster will work, even with a read-only /usr/obj. -- Jilles Tjoelker