From owner-freebsd-stable Tue Nov 7 21:59:16 2000 Delivered-To: freebsd-stable@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id 6895A37B479 for ; Tue, 7 Nov 2000 21:59:13 -0800 (PST) Received: from FreeBSD.org (Studded@master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id VAA58873; Tue, 7 Nov 2000 21:59:11 -0800 (PST) (envelope-from DougB@FreeBSD.org) Message-ID: <3A08EBAF.4FB541CD@FreeBSD.org> Date: Tue, 07 Nov 2000 21:59:11 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Cy Schubert - ITSD Open Systems Group Cc: freebsd-stable@FreeBSD.org Subject: Re: Mergemaster Fails with R/O NFS Mounted /usr/src References: <200011071512.eA7FCMo07947@cwsys.cwsent.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Cy Schubert - ITSD Open Systems Group wrote: > > Installing 4.2-BETA on a system from read-only NFS mounted /usr/src and > /usr/obj, mergemaster fails with the following: > > [lines removed] > mtree -deU -f /usr/opt/cvs-420b-001106/src/etc/mtree/BSD.include.dist > -p /usr/libdata/perl/5.00503/mach > cd /; rm -f /sys; ln -s usr/src/sys sys > cd /usr/share/locale; set - `cat /usr/opt/cvs-420b-001106/src/etc/local > e.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; > shift; shift; done > cd /usr/share/nls; set - `cat /usr/opt/cvs-420b-001106/src/etc/locale.a > lias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; > shift; shift; done; rm -rf POSIX; ln -s C POSIX > rm: ASCII: Read-only file system > *** Error code 1 > > Stop in /usr/opt/cvs-420b-001106/src/etc. > > *** FATAL ERROR: Cannot 'cd' to /usr/src/etc and install files to the > temproot environment The problem is that the distrib-dirs target in /usr/src/etc/Makefile is doing rude things in $DISTDIR/usr/share. At the time I felt it was safe to just call that target because 'make installworld' does the exact same thing when it runs. Have you actually done a 'make installworld' on this system? I'm confused about that bit. In any case, the purpose of doing 'make distrib-dirs' in that part of the script is to create the proper directories and permissions on them in the destination tree. I can get away with doing just the mtree for BSD.root.dist, so that's the actual change I'm going to make. Thanks for bringing this to my attention, Doug -- Life is an essay test. Long form. Spelling counts. Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message