Date: Sun, 7 Jan 2001 15:34:10 -0800 (PST) From: Gordon Tetlow <gordont@bluemtn.net> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/24136: Options tryDHCP and tryRTSOL in sysinstall's install.cfg confusing Message-ID: <200101072334.f07NYAA01394@hobbes.melthusia.org>
next in thread | raw e-mail | index | archive | help
>Number: 24136
>Category: bin
>Synopsis: sysinstall's install.cfg tryRTSOL and tryDHCP don't work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 07 15:40:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Gordon Tetlow
>Release: FreeBSD 4.2-STABLE i386
>Organization:
Blue Mountain Arts
>Environment:
N/A
>Description:
When creating a install.cfg for an unattended installation, I specified
tryRTSOL=NO so it wouldn't prompt me for IPv6 configuration of my
network interfaces. Unfortunately, it still prompted me for it. From
looking at the code, tryDHCP=NO would produce the same result.
>How-To-Repeat:
Try an unattended install specifying tryRTSOL=NO. It will still prompt you
asking if you want to Configure IPv6 for your network interface.
>Fix:
Quick work around:
Use tryRTSOL=ASDF or some other nonsensical value
Patch:
I think this should do it. I wasn't able to rebuild it to check
to see if it works, but the logic is there.
diff -uNr sysinstall.orig/install.c sysinstall/install.c
--- sysinstall.orig/install.c Sun Jan 7 14:48:22 2001
+++ sysinstall/install.c Sun Jan 7 14:48:52 2001
@@ -1060,8 +1060,8 @@
variable_set2(VAR_TAPE_BLOCKSIZE, DEFAULT_TAPE_BLOCKSIZE, 0);
variable_set2(VAR_INSTALL_ROOT, "/", 0);
variable_set2(VAR_INSTALL_CFG, "install.cfg", 0);
- variable_set2(VAR_TRY_DHCP, "NO", 0); /* For now */
- variable_set2(VAR_TRY_RTSOL, "NO", 0); /* For now */
+ variable_set2(VAR_TRY_DHCP, "UNSET", 0); /* For now */
+ variable_set2(VAR_TRY_RTSOL, "UNSET", 0); /* For now */
cp = getenv("EDITOR");
if (!cp)
cp = "/usr/bin/ee";
diff -uNr sysinstall.orig/tcpip.c sysinstall/tcpip.c
--- sysinstall.orig/tcpip.c Sun Jan 7 14:48:22 2001
+++ sysinstall/tcpip.c Sun Jan 7 14:50:02 2001
@@ -268,7 +268,7 @@
/* Try a RTSOL scan if such behavior is desired */
if (!variable_cmp(VAR_TRY_RTSOL, "YES") ||
- ((!variable_cmp(VAR_TRY_RTSOL, "NO")) && (!msgNoYes("Do you want to try IPv6 configuration of the interface?")))) {
+ ((!variable_cmp(VAR_TRY_RTSOL, "UNSET")) && (!msgNoYes("Do you want to try IPv6 configuration of the interface?")))) {
int i;
int len;
@@ -294,7 +294,7 @@
/* First try a DHCP scan if such behavior is desired */
if (!variable_cmp(VAR_TRY_DHCP, "YES") ||
- ((!variable_cmp(VAR_TRY_DHCP, "NO")) && (!msgNoYes("Do you want to try DHCP configuration of the interface?")))) {
+ ((!variable_cmp(VAR_TRY_DHCP, "UNSET")) && (!msgNoYes("Do you want to try DHCP configuration of the interface?")))) {
Mkdir("/var/db");
Mkdir("/var/run");
Mkdir("/tmp");
>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?200101072334.f07NYAA01394>
