Subject: Re: port-alpha/29640: NetBSD-2.0/alpha installation floppies missing /sbin/dhclient
To: None <port-alpha-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Nicolas Joly <njoly@pasteur.fr>
List: netbsd-bugs
Date: 12/28/2005 17:05:04
The following reply was made to PR port-alpha/29640; it has been noted by GNATS.

From: Nicolas Joly <njoly@pasteur.fr>
To: gnats-bugs@NetBSD.org
Cc: port-alpha-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: port-alpha/29640: NetBSD-2.0/alpha installation floppies missing /sbin/dhclient
Date: Wed, 28 Dec 2005 18:01:59 +0100

 On Wed, Mar 09, 2005 at 01:39:00PM +0000, vashquez@yahoo.com wrote:
 > >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.
 > 
 [...]
 > >Fix:
 > Produce floppies that include /sbin/dhclient?
 
 I don't know for other installation media, but i made it work on
 -current NetBSD/alpha floppies with the following patch.
 
 Index: distrib/alpha/instkernel/ramdisk/Makefile
 ===================================================================
 RCS file: /cvsroot/src/distrib/alpha/instkernel/ramdisk/Makefile,v
 retrieving revision 1.22
 diff -u -r1.22 Makefile
 --- distrib/alpha/instkernel/ramdisk/Makefile	10 Jul 2003 10:34:02 -0000	1.22
 +++ distrib/alpha/instkernel/ramdisk/Makefile	28 Dec 2005 16:37:23 -0000
 @@ -13,7 +13,7 @@
  LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
  MTREECONF=	${DISTRIBDIR}/common/mtree.common
  IMAGEENDIAN=	le
 -MAKEDEVTARGETS=	minimal
 +MAKEDEVTARGETS=	minimal bpf
  IMAGEDEPENDS=	${CRUNCHBIN} \
  		disktab.preinstall dot.hdprofile dot.profile \
  		install.sh upgrade.sh \
 Index: distrib/alpha/instkernel/ramdisk/list
 ===================================================================
 RCS file: /cvsroot/src/distrib/alpha/instkernel/ramdisk/list,v
 retrieving revision 1.23
 diff -u -r1.23 list
 --- distrib/alpha/instkernel/ramdisk/list	27 Dec 2003 21:30:27 -0000	1.23
 +++ distrib/alpha/instkernel/ramdisk/list	28 Dec 2005 16:37:23 -0000
 @@ -20,6 +20,7 @@
  PROG	bin/stty
  PROG	bin/sync
  
 +PROG	sbin/dhclient
  PROG	sbin/disklabel
  PROG	sbin/fsck
  PROG	sbin/fsck_ffs
 @@ -57,6 +58,7 @@
  # init invokes the shell as -sh
  ARGVLN	sh -sh
  
 +SPECIAL	dhclient	srcdir	distrib/utils/x_dhclient
  SPECIAL	ping		srcdir	distrib/utils/x_ping
  
  LIBS	-ledit -lbz2 -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm -lz
 @@ -80,6 +82,7 @@
  COPY	${DESTDIR}/usr/share/misc/termcap	usr/share/misc/termcap
  COPY	${DISTRIBDIR}/utils/script-installer/dot.commonutils .commonutils
  COPY	${DISTRIBDIR}/utils/script-installer/dot.instutils   .instutils
 +COPY	${NETBSDSRCDIR}/usr.sbin/dhcp/clientscript/dhclient-script sbin/dhclient-script 555
  
  # the disktab explanation file
  COPY	${CURDIR}/disktab.preinstall		etc/disktab.preinstall
 Index: sys/arch/alpha/conf/INSTALL
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/alpha/conf/INSTALL,v
 retrieving revision 1.88
 diff -u -r1.88 INSTALL
 --- sys/arch/alpha/conf/INSTALL	7 Dec 2005 12:40:46 -0000	1.88
 +++ sys/arch/alpha/conf/INSTALL	28 Dec 2005 16:37:24 -0000
 @@ -333,6 +333,7 @@
  wskbd*		at	pckbd?
  wsmouse*	at	pms?
  
 +pseudo-device	bpfilter	16
  pseudo-device	loop		1
  pseudo-device	md		1
  pseudo-device	ppp		1
 
 
 -- 
 Nicolas Joly
 
 Biological Software and Databanks.
 Institut Pasteur, Paris.