From owner-freebsd-stable Wed Nov 8 18:54:19 2000 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 6ADD037B4C5; Wed, 8 Nov 2000 18:54:16 -0800 (PST) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id SAA32014; Wed, 8 Nov 2000 18:54:10 -0800 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda32012; Wed Nov 8 18:53:56 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.1/8.9.1) id eA92ru713596; Wed, 8 Nov 2000 18:53:56 -0800 (PST) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdQ13594; Wed Nov 8 18:53:25 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.1/8.9.1) id eA92rOc21588; Wed, 8 Nov 2000 18:53:24 -0800 (PST) Message-Id: <200011090253.eA92rOc21588@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpds21080; Wed Nov 8 18:52:53 2000 X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.1.1-RELEASE X-Sender: cy To: Doug Barton Cc: Cy Schubert - ITSD Open Systems Group , freebsd-stable@FreeBSD.org Subject: Re: Mergemaster Fails with R/O NFS Mounted /usr/src In-reply-to: Your message of "Tue, 07 Nov 2000 21:59:11 PST." <3A08EBAF.4FB541CD@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 08 Nov 2000 18:52:52 -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3A08EBAF.4FB541CD@FreeBSD.org>, Doug Barton writes: > 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. Make installworld has the same problem, however using the -i option works on this system, a 486DX33 with /usr/share NFS mounted read-only from another FreeBSD system. As using -DNOSHARE doesn't resolve this problem, -i is my only option. Yes, I do realise the risks of using the -i option. So far so nothing has gone wrong yet -- knock on wood. > > 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, I should have brought the other problem to someone's attention long before this. My apologies. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message