From owner-freebsd-current@FreeBSD.ORG Sun May 3 15:45:51 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 3D989376; Sun, 3 May 2015 15:45:51 +0000 (UTC) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A118D1A2A; Sun, 3 May 2015 15:45:50 +0000 (UTC) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.14.9/8.14.9) with ESMTP id t43FjXPl002361 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 3 May 2015 17:45:34 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.14.9/8.14.9) with ESMTP id t43Ftdev043590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 3 May 2015 17:55:39 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.14.9/8.14.9/Submit) id t43Ftdla043589; Sun, 3 May 2015 17:55:39 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Sun, 3 May 2015 17:55:39 +0200 From: Wolfgang Zenker To: Jilles Tjoelker Cc: freebsd-current@freebsd.org, Will Andrews , Garrett Cooper Subject: Re: mergemaster failing with read-only /usr/src Message-ID: <20150503155539.GA43387@lyxys.ka.sub.org> References: <20150503120349.GA42415@lyxys.ka.sub.org> <20150503125325.GA70576@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150503125325.GA70576@stack.nl> Organization: private site User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Sun, 03 May 2015 17:45:34 +0200 (CEST) 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 15:45:51 -0000 * Jilles Tjoelker [150503 14:53]: > 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. Well, I do build on that machine directly, and /usr/obj is mounted r/w, only /usr/src is a read-only mount. Trying the workaround on the machine istself does not help, unfortunately: while the "make buildenv" does work without a problem, mergemaster still fails in the same way. Wolfgang