From owner-freebsd-bugs Thu Jun 17 6:30: 9 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6A87415512 for ; Thu, 17 Jun 1999 06:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA73475; Thu, 17 Jun 1999 06:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (Postfix) with ESMTP id D1C6C15093 for ; Thu, 17 Jun 1999 06:22:13 -0700 (PDT) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id JAA26767 for ; Thu, 17 Jun 1999 09:22:41 -0400 (EDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id JAA04196 for ; Thu, 17 Jun 1999 09:22:10 -0400 (EDT) Received: (from rivers@localhost) by lakes.dignus.com (8.9.2/8.6.9) id JAA15258; Thu, 17 Jun 1999 09:22:10 -0400 (EDT) Message-Id: <199906171322.JAA15258@lakes.dignus.com> Date: Thu, 17 Jun 1999 09:22:10 -0400 (EDT) From: Thomas David Rivers Reply-To: rivers@dignus.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/12259: SL/IP install doesn't work due to ifconfig sl0 problem Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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