From thomas@cuivre.fr.eu.org  Wed Aug 16 20:40:41 2006
Return-Path: <thomas@cuivre.fr.eu.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E8DA816A4DF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 Aug 2006 20:40:41 +0000 (UTC)
	(envelope-from thomas@cuivre.fr.eu.org)
Received: from melamine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [82.225.155.84])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7E46243D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 Aug 2006 20:40:41 +0000 (GMT)
	(envelope-from thomas@cuivre.fr.eu.org)
Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000)
	id A98C55C66B; Wed, 16 Aug 2006 22:40:40 +0200 (CEST)
Message-Id: <20060816204040.A98C55C66B@melamine.cuivre.fr.eu.org>
Date: Wed, 16 Aug 2006 22:40:40 +0200 (CEST)
From: Thomas Quinot <thomas@cuivre.fr.eu.org>
Reply-To: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: EDITOR and PAGER not set correctly in fixit.profile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         102160
>Category:       bin
>Synopsis:       EDITOR and PAGER not set correctly in fixit.profile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kensmith
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 16 20:50:18 GMT 2006
>Closed-Date:    Sun Feb 03 05:13:32 UTC 2008
>Last-Modified:  Sun Feb 03 05:13:32 UTC 2008
>Originator:     Thomas Quinot
>Release:        FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD melamine.cuivre.fr.eu.org 6.1-RC FreeBSD 6.1-RC #0: Thu May 4 13:21:21 CEST 2006 thomas@melamine.cuivre.fr.eu.org:/space/build/obj/space/build/src/RELENG_6/sys/MELAMINE i386


	
>Description:
	src/release/fixit.profile has:
	export EDITOR="/mnt2/stand/vi"
	export PAGER="/mnt2/stand/more"
	but these paths are invalid in the Fixit environment:
	/mnt2/stand is a symlink pointing to "/rescue", and there is no
	/rescue.

>How-To-Repeat:
	Boot disc1.iso.
	Enter Fixit shell in CD-ROM mode.
	Use disklabel -e <some device>
	Observe error message:
	disklabel: /mnt2/stand/vi: No such file or directory

>Fix:
	For EDITOR, I see at least three possible solutions:
	1. Change fixit.profile to set EDITOR to /mnt2/rescue/vi
	2. Have sysinstall create a symlink /rescue -> /mnt2/rescue.
	3. Change the /stand symlink to point to "rescue" (instead
	   of "/rescue").

	For PAGER, we have an additional issue: there is no "more" and no
	"less" either in /mnt2/rescue. We could possibly use
	PAGER=/mnt2/usr/bin/more, or else add "more" to the /rescue builtin
	utilities.
>Release-Note:
>Audit-Trail:

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/102160: [patch] fix EDITOR and PAGER in fixit.profile
Date: Thu, 24 Aug 2006 13:07:25 +0200

 Proposed patch attached.
 
 Thomas.
 
 Index: fixit.profile
 ===================================================================
 RCS file: /space/mirror/ncvs/src/release/fixit.profile,v
 retrieving revision 1.10
 diff -u -r1.10 fixit.profile
 --- fixit.profile	2 Sep 2004 13:40:34 -0000	1.10
 +++ fixit.profile	24 Aug 2006 11:04:51 -0000
 @@ -3,8 +3,8 @@
  
  export BLOCKSIZE=K
  export PS1="Fixit# "
 -export EDITOR="/mnt2/stand/vi"
 -export PAGER="/mnt2/stand/more"
 +export EDITOR="/mnt2/rescue/vi"
 +export PAGER="/mnt2/usr/bin/less"
  export SCSI_MODES="/mnt2/usr/share/misc/scsi_modes"
  # the root MFS doesn't have /dev/nrsa0, pick a better default for mt(1)
  export TAPE=/mnt2/dev/nrsa0
Responsible-Changed-From-To: freebsd-bugs->thomas 
Responsible-Changed-By: thomas 
Responsible-Changed-When: Thu Aug 24 11:12:36 UTC 2006 
Responsible-Changed-Why:  
I'll take care of this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102160 
Responsible-Changed-From-To: thomas->kensmith 
Responsible-Changed-By: kensmith 
Responsible-Changed-When: Tue Jan 22 15:42:45 UTC 2008 
Responsible-Changed-Why:  

Working on this. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=102160 
State-Changed-From-To: open->closed 
State-Changed-By: kensmith 
State-Changed-When: Sun Feb 3 05:12:53 UTC 2008 
State-Changed-Why:  

Fixed in RELENG_7 and RELENG_6. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=102160 
>Unformatted:
