Subject: port-alpha/29640: NetBSD-2.0/alpha installation floppies missing /sbin/dhclient
To: None <port-alpha-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <vashquez@yahoo.com>
List: netbsd-bugs
Date: 03/09/2005 13:39:00
>Number:         29640
>Category:       port-alpha
>Synopsis:       NetBSD-2.0/alpha installation floppies missing /sbin/dhclient
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 09 13:39:00 +0000 2005
>Originator:     Jim Vash
>Release:        2.0/alpha
>Organization:
>Environment:
>Description:
NetBSD 2.0/alpha installation floppies do not contain the /sbin/dhclient program.

Looking at the relevant sources for sysinst (src/distrib/utils/sysinst/net.c) shows the following code fragments:

#define DHCLIENT_EX "/sbin/dhclient"
[...]
	if (!file_mode_match(DHCLIENT_EX, S_IFREG))
		return 0;

The net result is that the installation does not prompt for DHCP autoconfiguration (as the installation guide says at http://www.netbsd.org/guide/en/chap-exinst.html#inst-ftp-dhcp) when selecting FTP as the installation media.

Others have reported that this problem also exists on (at least) 2.99.16/sparc.  Other ports should probably be checked to assure they include /sbin/dhclient on their installation floppies.

>How-To-Repeat:
Boot NetBSD/2.0 alpha installation floppies, proceed to select FTP as the installation media, and note that there is no prompt for DHCP.

Also, ^Z out to the shell during sysinst and note:

# ls /sbin/dhclient
ls: /sbin/dhclient: No such file or directory

>Fix:
Produce floppies that include /sbin/dhclient?