Subject: install/8344: Simplify sysinst installation via SLIP
To: None <gnats-bugs@gnats.netbsd.org>
From: Brook Milligan <brook@biology.nmsu.edu>
List: netbsd-bugs
Date: 09/09/1999 11:39:26
>Number: 8344
>Category: install
>Synopsis: Simplify sysinst installation via SLIP
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: install-manager (NetBSD system installation bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 9 11:35:01 1999
>Last-Modified:
>Originator: Brook Milligan
>Organization:
Brook G. Milligan Internet: brook@nmsu.edu
Department of Biology
New Mexico State University Telephone: (505) 646-7980
Las Cruces, New Mexico 88003 U.S.A. FAX: (505) 646-5665
>Release: NetBSD-1.4
>Environment:
System: NetBSD biology.nmsu.edu 1.4 NetBSD 1.4 (BIOLOGY) #0: Fri Jun 4 10:09:57 MDT 1999 root@rosa.nmsu.edu:/usr/src/sys/arch/i386/compile/BIOLOGY i386
>Description:
It is currently (at least at 1.4) difficult to use sysinst to
install via SLIP because no network interfaces other than
"real" ones are reported. Specifically,
/usr/src/distrib/utils/sysinst/net.c:155 removes all
interfaces after lo0 from the list of possible devices. This
includes ppp? and sl?, so it is difficult to use SLIP within
the context of sysinst.
>How-To-Repeat:
Run sysinst, select utils/configure net and note that ppp? and
sl? devices (among others) are not reported as possible
interfaces.
>Fix:
Apply following patch in /usr/src/distrib/utils/sysinst.
After that, one can (for example) run sysinst, escape to the
shell, dial a SLIP server via tip, escape tip, run slattach,
kill tip, reenter sysinst, and proceed with normal
installation. Not exactly easy, but at least possible. :)
--- msg.mi.eng.orig Sun May 2 15:45:44 1999
+++ msg.mi.eng Mon Aug 23 08:05:23 1999
@@ -441,11 +441,23 @@
message asknetdev
{I have found the following network interfaces: %s
+\nNote that interfaces listed from lo0 onwards are special network
+devices that need special configuration. If you choose to use one
+of them, you must configure it outside this program. For example,
+before selecting one of the special interfaces, you can suspend this
+program by typing ^Z, configure the interface, then return here by
+typing fg %%1.
\nWhich device shall I use? }
message badnet
{You did not choose one of the listed network devices. Please try again.
The following network devices are available: %s
+\nNote that interfaces listed from lo0 onwards are special network
+devices that need special configuration. If you choose to use one
+of them, you must configure it outside this program. For example,
+before selecting one of the special interfaces, you can suspend this
+program by typing ^Z, configure the interface, then return here by
+typing fg %%1.
\nWhich device shall I use? }
message netinfo
--- msg.mi.fr.orig Mon Apr 19 09:19:27 1999
+++ msg.mi.fr Wed Sep 8 13:53:16 1999
@@ -450,12 +450,26 @@
message asknetdev
{J'ai trouvé les interfaces réseau suivantes : %s
-\nLa quelle dois je utiliser ?}
+\nRemarquez que les interfaces listées à partir de lo0 sont
+des périphériques spéciaux qui demandent une configuration
+particulière. Si vous choisissez d'utiliser l'une d'elles, vous
+devez la configurer à l'extérieur de ce programme. Par exemple,
+avant de sélectionner l'une des interfaces spéciales, vous pouvez
+suspendre ce programme en tapant ^Z, configurer l'interface, puis
+revenir ici en tapant fg %%1.
+\nLaquelle dois-je utiliser ?}
message badnet
-{Vous n'avez pas choisi une interface réseau dans la liste. SVP réessayez.
-Les interface réseau suivantes sont disponibles : %s
-\nLa quelle dois je utiliser ?}
+{Vous n'avez pas choisi une interface réseau dans la liste. Réessayez SVP.
+Les interfaces réseau suivantes sont disponibles : %s
+\nRemarquez que les interfaces listées à partir de lo0 sont
+des périphériques spéciaux qui demandent une configuration
+particulière. Si vous choisissez d'utiliser l'une d'elles, vous
+devez la configurer à l'extérieur de ce programme. Par exemple,
+avant de sélectionner l'une des interfaces spéciales, vous pouvez
+suspendre ce programme en tapant ^Z, configurer l'interface, puis
+revenir ici en tapant fg %%1.
+\nLaquelle dois-je utiliser ?}
message netinfo
--- net.c.orig Mon Apr 19 09:19:28 1999
+++ net.c Sun Aug 22 10:36:50 1999
@@ -139,7 +139,6 @@
{
char *textbuf;
int textsize;
- char *t;
/* Get ifconfig information */
@@ -154,11 +153,6 @@
strncpy(net_devices, textbuf, textsize<STRSIZE ? textsize : STRSIZE);
net_devices[STRSIZE] = 0;
free(textbuf);
-
- /* Remove lo0 and anything after ... */
- t = strstr(net_devices, "lo0");
- if (t != NULL)
- *t = 0;
}
/* Fill in defaults network values for the selected interface */
>Audit-Trail:
>Unformatted: