Date: Thu, 17 Jun 1999 09:22:10 -0400 (EDT) From: Thomas David Rivers <rivers@dignus.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/12259: SL/IP install doesn't work due to ifconfig sl0 problem Message-ID: <199906171322.JAA15258@lakes.dignus.com>
index | next in thread | raw e-mail
>Number: 12259
>Category: bin
>Synopsis: SL/IP install doesn't work due to ifconfig sl0 problem
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 17 06:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Thomas David Rivers
>Release: FreeBSD 3.1-RELEASE i386
>Organization:
Dignus, LLC
>Environment:
3.1R and 3.2R installation via direct SL/IP line.
>Description:
There is a bug in the ifconfig of the slip interface.
If you slattach a slip unit to a tty _before_ doing the
`ifconfig slX', the ifconfig will fail with EEXISTS.
(see PR kern/12251 for more information.)
Unfortunately, that's the order sysinstall takes for
the SL/IP connection.
Doing the ifconfig followed by the slattach should work.
>How-To-Repeat:
Try to do a SL/IP install.
>Fix:
The following is the context diff to 3.2-R's
/usr/src/release/sysinstall/network.c to move the
slattach after the ifconfig. That should be an
adequate "work-around" until some solution for the
kernel bug is found.
*** network.c.ori Sat Mar 13 05:41:29 1999
--- network.c Thu Jun 17 08:23:12 1999
***************
*** 82,88 ****
networkInitialized = TRUE;
return TRUE;
}
! else if (!strncmp("sl", dev->name, 2)) { /* SLIP? */
char *val;
char attach[256];
--- 82,105 ----
networkInitialized = TRUE;
return TRUE;
}
!
!
! snprintf(ifconfig, 255, "%s%s", VAR_IFCONFIG, dev->name);
! cp = variable_get(ifconfig);
! if (!cp) {
! msgConfirm("The %s device is not configured. You will need to do so\n"
! "in the Networking configuration menu before proceeding.", dev->name);
! return FALSE;
! }
! msgNotify("ifconfig %s %s", dev->name, cp);
! i = vsystem("ifconfig %s %s", dev->name, cp);
! if (i) {
! msgConfirm("Unable to configure the %s interface!\n"
! "This installation method cannot be used.", dev->name);
! return FALSE;
! }
!
! if (!strncmp("sl", dev->name, 2)) { /* SLIP? */
char *val;
char attach[256];
***************
*** 114,134 ****
"the command is correct and try this operation again.");
return FALSE;
}
- }
-
- snprintf(ifconfig, 255, "%s%s", VAR_IFCONFIG, dev->name);
- cp = variable_get(ifconfig);
- if (!cp) {
- msgConfirm("The %s device is not configured. You will need to do so\n"
- "in the Networking configuration menu before proceeding.", dev->name);
- return FALSE;
- }
- msgNotify("ifconfig %s %s", dev->name, cp);
- i = vsystem("ifconfig %s %s", dev->name, cp);
- if (i) {
- msgConfirm("Unable to configure the %s interface!\n"
- "This installation method cannot be used.", dev->name);
- return FALSE;
}
rp = variable_get(VAR_GATEWAY);
--- 131,136 ----
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906171322.JAA15258>
