From owner-freebsd-current@freebsd.org Tue Aug 25 21:55:21 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 905849C313D for ; Tue, 25 Aug 2015 21:55:21 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 5DC20F32 for ; Tue, 25 Aug 2015 21:55:21 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from localhost (unknown [91.206.210.19]) by mail.dawidek.net (Postfix) with ESMTPSA id F3541A44; Tue, 25 Aug 2015 23:55:19 +0200 (CEST) Date: Tue, 25 Aug 2015 23:55:24 +0200 From: Pawel Jakub Dawidek To: Xin Li Cc: freebsd-current@FreeBSD.org Subject: Re: Read-only /usr/obj/ no longer kosher? Message-ID: <20150825215524.GE1172@garage.freebsd.pl> References: <20150823215552.GB1314@garage.freebsd.pl> <55DA492D.4030804@delphij.net> <20150825210437.GB1172@garage.freebsd.pl> <20150825215347.GD1172@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150825215347.GD1172@garage.freebsd.pl> X-OS: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.23 (2014-03-12) 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: Tue, 25 Aug 2015 21:55:21 -0000 On Tue, Aug 25, 2015 at 11:53:47PM +0200, Pawel Jakub Dawidek wrote: > On Tue, Aug 25, 2015 at 11:04:37PM +0200, Pawel Jakub Dawidek wrote: > > On Sun, Aug 23, 2015 at 03:29:01PM -0700, Xin Li wrote: > > > > > > > > > On 8/23/15 14:55, Pawel Jakub Dawidek wrote: > > > > I used to build world and kernel on one machine and export both /usr/src/ and > > > > /usr/obj read-only to other machines. It doesn't work anymore (this is from > > > > 'make installworld'): > > > > > > > > ===> bin/freebsd-version (install) > > > > eval $(egrep '^(TYPE|REVISION|BRANCH)=' /usr/src/bin/freebsd-version/../../sys/conf/newvers.sh) ; if ! sed -e " s/@@TYPE@@/${TYPE}/g; s/@@REVISION@@/${REVISION}/g; s/@@BRANCH@@/${BRANCH}/g; " /usr/src/bin/freebsd-version/freebsd-version.sh.in >freebsd-version.sh ; then rm -f freebsd-version.sh ; exit 1 ; fi > > > > cannot create freebsd-version.sh: Permission denied > > > > rm: freebsd-version.sh: Read-only file system > > > > *** Error code 1 > > > > > > What's the modification times of > > > /usr/obj/usr/bin/freebsd-version/freebsd-version.sh, > > > /usr/src/bin/freebsd-version/freebsd-version.sh and > > > /usr/src/sys/conf/newvers.sh? > > > > I saw it twice, but cannot reproduce it anymore. This is 10.2-RELEASE, > > I've send it to current@ by mistake. All in all my expectation is that > > we shouldn't modify obj/ during installworld. > > Now that I think of it, it might have been that I did > buildworld/buildkernel before -p1. Then freebsd-update updated > newvers.sh and then I was trying to do installworld. Yes, I can now reproduce it with source updated to -p2. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com