From owner-freebsd-questions@FreeBSD.ORG Tue Nov 2 16:46:02 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C68816A4D2 for ; Tue, 2 Nov 2004 16:46:02 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id E623943D48 for ; Tue, 2 Nov 2004 16:46:01 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from nbritton.org (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc91.asp.att.net (sccimhc91) with SMTP id <20041102164600i9100hp3jte>; Tue, 2 Nov 2004 16:46:01 +0000 Message-ID: <4187B9C8.2010904@nbritton.org> Date: Tue, 02 Nov 2004 10:46:00 -0600 From: Nikolas Britton User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erik Norgaard References: <4187A696.9020806@locolomo.org> In-Reply-To: <4187A696.9020806@locolomo.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: mergemaster fails in single user mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2004 16:46:02 -0000 Erik Norgaard wrote: >Hi, > >I just upgraded to -CURRENT (yesterdays). Everything goes well, I reboot >into single user mode, mount all partitions and run 'make installworld' > >To finish the upgrade I run "mergemaster" still in single user mode, but >this fails with the following output: > ># /usr/sbin/mergemaster > >tput: no terminal type specified and no TERM environmental variable. >*** The directory specified for the temporary root environment, > /var/tmp/temproot, exists. This can be a security risk if untrusted > users have access to the system. > > Use 'd' to delete the old /var/tmp/temproot and continue > Use 't' to select a new temporary root directory > Use 'e' to exit mergemaster > > Default is to use /var/tmp/temproot as is > >How should I deal with this? [Use the existing /var/tmp/temproot] > > *** Leaving /var/tmp/temproot intact > >*** Creating the temporary root environment in /var/tmp/temproot > *** /var/tmp/temproot ready for use > *** Creating and populating directory structure in /var/tmp/temproot > >mtree -eU -f /usr/src/etc/mtree/BSD.root.dist -p /var/tmp/temproot/ >mtree:No such file or directory >*** Error code 1 > >Stop in /usr/src/etc. > > *** FATAL ERROR: Cannot 'cd' to /usr/src/etc and install files to > the temproot environment > ># >Script done on Tue Nov 2 12:08:40 2004 > >Rebooting into normal multi-user mode, I have no problem running the >script. > >Should I simply not run mergemaster in single user mode? (Anyway, I >believe the error to be odd). > >Cheers, Erik > >PS: I have had this error before, in june and september with -CURRENT. > > > I was told to run mergemaster in multi-user mode, and that the only time you drop down to single-user mode was to run make installworld and even that was "semi-optional". 1: # cd /usr/src 2: # make buildworld && make buildkernel && make installkernel 3: # reboot 4: briefly test your new kernel. 5: # shutdown now 6: # cd /usr/src 7: # make installworld 8: # reboot 9: login. 10: # mergemaster