From owner-freebsd-current@FreeBSD.ORG Mon May 4 15:45:09 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 022C582F; Mon, 4 May 2015 15:45:09 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (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 CF7B91F29; Mon, 4 May 2015 15:45:08 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id C493AB99B; Mon, 4 May 2015 11:45:07 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Cc: Garrett Cooper , Wolfgang Zenker , Jilles Tjoelker , Will Andrews , Garrett Cooper Subject: Re: mergemaster failing with read-only /usr/src Date: Mon, 04 May 2015 10:05:07 -0400 Message-ID: <4602642.x7Cmbsudvo@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: References: <20150503120349.GA42415@lyxys.ka.sub.org> <20150503155539.GA43387@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 04 May 2015 11:45:07 -0400 (EDT) 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: Mon, 04 May 2015 15:45:09 -0000 On Sunday, May 03, 2015 12:11:03 PM Garrett Cooper wrote: > On May 3, 2015, at 8:55, Wolfgang Zenker = wrote: >=20 > > * 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 0= 3:48:04 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips= > >=20 > >>> 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: > >=20 > >>> # mergemaster -iFU > >=20 > >>> *** Creating the temporary root environment in /var/tmp/temproot > >>> *** /var/tmp/temproot ready for use > >>> *** Creating and populating directory structure in /var/tmp/tempr= oot > >=20 > >>> /bin/sh: cannot create routing_test.tmp: Read-only file system > >=20 > >>> *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to > >>> the temproot environment > >=20 > >>> 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) > >=20 > >>> This used to work before. Any ideas, any further info I could pro= vide? > >=20 > >> This broke after a test was added for etc/rc.d/. Without special c= ode, > >> this causes these tests to be built and installed as part of > >> mergemaster/etcmerge, like other parts of etc. > >=20 > >> 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. > >=20 > > 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 ma= chine > > istself does not help, unfortunately: while the "make buildenv" doe= s > > work without a problem, mergemaster still fails in the same way. >=20 > I was going to move it to etc/tests soon since it wasn=E2=80=99t real= ly testing /etc/rc.d/, but it makes more sense (with the issue above), = just to create .../tests/etc, and move things there. I wish etc/ wasn=E2= =80=99t such a special butterfly... /etc is quite special as it isn't installed during installworld, only f= or distribution. The tests should probably be part of installworld, so pl= ease move it. --=20 John Baldwin