From mat@mat2.tokyo.pfu.co.jp  Tue Oct 17 00:05:28 2000
Return-Path: <mat@mat2.tokyo.pfu.co.jp>
Received: from nejimaki2m.pfu.co.jp (nejimaki2m.pfu.co.jp [202.248.171.151])
	by hub.freebsd.org (Postfix) with ESMTP id 8148537B4C5
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2000 00:05:27 -0700 (PDT)
Received: from scansend.pfu.co.jp ([10.232.16.32])
	by nejimaki2m.pfu.co.jp (8.9.3/3.7W-99121211) with ESMTP id QAA21326
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2000 16:05:23 +0900 (JST)
Received: from capella2.pfu.co.jp (interscan2.pfu.co.jp [10.232.16.31])
	by scansend.pfu.co.jp (8.9.3/3.7W-99120918) with ESMTP id QAA21752
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2000 16:05:23 +0900 (JST)
Received: from mat2.tokyo.pfu.co.jp (mat2.tokyo.pfu.co.jp [10.232.139.103])
	by capella2.pfu.co.jp (8.9.3/3.7W-00092514) with ESMTP id QAA04853
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2000 16:05:22 +0900 (JST)
Received: (from root@localhost)
	by mat2.tokyo.pfu.co.jp (8.9.3/8.9.3) id QAA33349;
	Tue, 17 Oct 2000 16:05:48 +0900 (JST)
	(envelope-from mat)
Message-Id: <200010170705.QAA33349@mat2.tokyo.pfu.co.jp>
Date: Tue, 17 Oct 2000 16:05:48 +0900 (JST)
From: Matsumura Naoki <mat@pfu.co.jp>
Sender: mat@mat2.tokyo.pfu.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: Make sysinstall refer to environment variable `releaseName'
X-Send-Pr-Version: 3.2

>Number:         22040
>Category:       misc
>Synopsis:       Make sysinstall refer to environment variable `releaseName'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    murray
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 17 00:10:01 PDT 2000
>Closed-Date:    Fri Aug 31 14:29:07 PDT 2001
>Last-Modified:  Fri Aug 31 14:30:10 PDT 2001
>Originator:     Matsumura Naoki
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
PFU Limited.
>Environment:

FreeBSD 4.1-RELEASE i386

>Description:

I use FreeBSD 4.1-RELEASE. But, there is only
4.1.1-RELEASE on anonymous ftp server in our
intranet.

So, I want to force /stand/sysinstall to get
packages of 4.1.1-RELEASE. But, current sysinstall
doesn't refer environment variable to determine
release name.

>How-To-Repeat:


>Fix:



I made patchs to refer sysinstall environment
variable `releaseName'.


% diff -u install.c.org install.c
--- install.c.org       Tue Oct 17 15:41:00 2000
+++ install.c   Tue Oct 17 15:41:10 2000
@@ -1021,7 +1021,12 @@
     char *cp;
 
     /* Set default startup options */
-    variable_set2(VAR_RELNAME,                 getRelname(), 0);
+    cp = getenv(VAR_RELNAME);
+    if (cp)
+      variable_set2(VAR_RELNAME,               cp, 0);
+    else
+      variable_set2(VAR_RELNAME,               getRelname(), 0);
+
     variable_set2(VAR_CPIO_VERBOSITY,          "high", 0);
     variable_set2(VAR_KGET,                    "YES", 0);
     variable_set2(VAR_TAPE_BLOCKSIZE,          DEFAULT_TAPE_BLOCKSIZE, 0);


% diff -u sysinstall.8.org sysinstall.8                                        --- sysinstall.8.org    Tue Oct 17 14:39:48 2000
+++ sysinstall.8        Tue Oct 17 15:33:11 2000
@@ -136,6 +136,8 @@
 .nf
 
 /stand/sysinstall _ftpPath=ftp://ziggy/pub/ mediaSetFTP configPackages
+/stand/sysinstall _ftpPath=ftp://ziggy/pub/ mediaSetFTP \\
+               releaseName=4.1-RELEASE configPackages
 
 .fi
 Would initialize
@@ -839,6 +841,10 @@
 full system installation has just been done.
 .El
 .El
+.It releaseName
+Configure release name, e.g. `4.1.1-RELEASE'.
+.Pp
+\fBVariables:\fR None
 .Sh FILES
 This utility may edit the contents of
 .Pa /etc/rc.conf ,

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->murray 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sun Oct 22 11:51:05 PDT 2000 
Responsible-Changed-Why:  
Over to sysinstall maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22040 
Responsible-Changed-From-To: murray->jkh 
Responsible-Changed-By: murray 
Responsible-Changed-When: Wed Mar 14 01:37:47 PST 2001 
Responsible-Changed-Why:  
Looks reasonable, do you want to commit this? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22040 
Responsible-Changed-From-To: jkh->eric 
Responsible-Changed-By: jkh 
Responsible-Changed-When: Thu Aug 30 17:26:09 PDT 2001 
Responsible-Changed-Why:  
He volunteered, honest 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22040 
State-Changed-From-To: open->closed 
State-Changed-By: murray 
State-Changed-When: Fri Aug 31 14:29:07 PDT 2001 
State-Changed-Why:  
/stand/sysinstall releaseName=4.N-RELEASE configPackages 

works now. 



Responsible-Changed-From-To: eric->murray 
Responsible-Changed-By: murray 
Responsible-Changed-When: Fri Aug 31 14:29:07 PDT 2001 
Responsible-Changed-Why:  
no reason.[B[A 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22040 
>Unformatted:
