Date: Tue, 17 Oct 2000 16:05:48 +0900 (JST) From: Matsumura Naoki <mat@pfu.co.jp> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/22040: Make sysinstall refer to environment variable `releaseName' Message-ID: <200010170705.QAA33349@mat2.tokyo.pfu.co.jp>
next in thread | raw e-mail | index | archive | help
>Number: 22040 >Category: misc >Synopsis: Make sysinstall refer to environment variable `releaseName' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Oct 17 00:10:01 PDT 2000 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010170705.QAA33349>