Subject: Re: add rnd(4) to install floppy
To: None <david@l8s.co.uk, tech-install@netbsd.org,>
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
List: tech-install
Date: 09/05/2003 17:15:55
>	(switching the mailing list)
>	i'd propose to add rnd(4) to every installation floppy kernel,
>	because of the following reason:
>
>> 	seriously, we should consider adding rnd(4) device to installation
>> 	kernel -
>> 	(1) every password generator uses random number as seed so passwd(1)
>> 	called from sysinst (for root password!) needs rnd(4).
>> 	(2) we may want to generate ssh host keys in boot floppy.


Index: alpha/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/alpha/conf/INSTALL,v
retrieving revision 1.72
diff -u -r1.72 INSTALL
--- alpha/conf/INSTALL	2003/04/16 23:41:36	1.72
+++ alpha/conf/INSTALL	2003/09/05 08:14:55
@@ -322,3 +322,5 @@
 pseudo-device	ppp		1
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
 pseudo-device	sl		1
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: amd64/conf/INSTALL_ACPI
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/conf/INSTALL_ACPI,v
retrieving revision 1.1
diff -u -r1.1 INSTALL_ACPI
--- amd64/conf/INSTALL_ACPI	2003/05/15 14:02:00	1.1
+++ amd64/conf/INSTALL_ACPI	2003/09/05 08:14:57
@@ -606,7 +606,7 @@
 #pseudo-device	tb		1	# tablet line discipline
 #pseudo-device	sequencer	1	# MIDI sequencer
 # rnd works; RND_COM does not on port i386 yet.
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 #options 	RND_COM			# use "com" randomness as well (BROKEN)
 #pseudo-device	clockctl		# user control of clock subsystem
 
Index: bebox/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/bebox/conf/INSTALL,v
retrieving revision 1.23
diff -u -r1.23 INSTALL
--- bebox/conf/INSTALL	2002/09/18 02:43:56	1.23
+++ bebox/conf/INSTALL	2003/09/05 08:14:57
@@ -140,3 +140,5 @@
 
 # Joystick driver. Probe is a little strange; add only if you have one.
 #joy0	at isa? port 0x201
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: cats/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/cats/conf/INSTALL,v
retrieving revision 1.27
diff -u -r1.27 INSTALL
--- cats/conf/INSTALL	2003/05/04 01:27:53	1.27
+++ cats/conf/INSTALL	2003/09/05 08:14:58
@@ -439,7 +439,7 @@
 pseudo-device	pty			# pseudo-terminals
 #pseudo-device	tb		1	# tablet line discipline
 #pseudo-device	sequencer	1	# MIDI sequencer
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 #options 	RND_COM			# use "com" randomness as well (BROKEN)
 #pseudo-device	vcoda		4	# coda minicache <-> venus comm.
 
Index: evbppc/conf/INSTALL_WALNUT
===================================================================
RCS file: /cvsroot/src/sys/arch/evbppc/conf/INSTALL_WALNUT,v
retrieving revision 1.2
diff -u -r1.2 INSTALL_WALNUT
--- evbppc/conf/INSTALL_WALNUT	2003/02/07 04:47:04	1.2
+++ evbppc/conf/INSTALL_WALNUT	2003/09/05 08:14:58
@@ -22,3 +22,5 @@
 ## The ramdisk size must be kept in sync manually with the size of
 ## the `ramdisk' image (which is built in distrib/walnut/ramdisk/ramdisk).
 options 	MEMORY_DISK_ROOT_SIZE=16384	# size of memory disk, in blocks
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: hp300/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/hp300/conf/INSTALL,v
retrieving revision 1.10
diff -u -r1.10 INSTALL
--- hp300/conf/INSTALL	2003/08/01 01:18:47	1.10
+++ hp300/conf/INSTALL	2003/09/05 08:14:58
@@ -221,4 +221,4 @@
 #pseudo-device	stf		1	# 6to4 IPv6 over IPv4 encapsulation
 #pseudo-device	vlan			# IEEE 802.1q encapsulation
 #pseudo-device	bridge			# simple inter-network bridging
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: i386/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/conf/GENERIC,v
retrieving revision 1.569
diff -u -r1.569 GENERIC
--- i386/conf/GENERIC	2003/08/26 21:12:48	1.569
+++ i386/conf/GENERIC	2003/09/05 08:14:59
@@ -163,8 +163,8 @@
 #options 	GATEWAY		# packet forwarding
 options 	INET		# IP + ICMP + TCP + UDP
 options 	INET6		# IPV6
-#options 	IPSEC		# IP security
-#options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
+options 	IPSEC		# IP security
+options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
 #options 	IPSEC_DEBUG	# debug for IP security
 #options 	MROUTING	# IP multicast routing
 options 	NS		# XNS
Index: i386/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/conf/INSTALL,v
retrieving revision 1.221
diff -u -r1.221 INSTALL
--- i386/conf/INSTALL	2003/08/07 12:06:16	1.221
+++ i386/conf/INSTALL	2003/09/05 08:14:59
@@ -715,7 +715,7 @@
 #pseudo-device	tb		1	# tablet line discipline
 #pseudo-device	sequencer	1	# MIDI sequencer
 # rnd works; RND_COM does not on port i386 yet.
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 #options 	RND_COM			# use "com" randomness as well (BROKEN)
 
 # a pseudo device needed for Coda	# also needs CODA (above)
Index: i386/conf/INSTALL_LAPTOP
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/conf/INSTALL_LAPTOP,v
retrieving revision 1.44
diff -u -r1.44 INSTALL_LAPTOP
--- i386/conf/INSTALL_LAPTOP	2003/06/05 14:33:51	1.44
+++ i386/conf/INSTALL_LAPTOP	2003/09/05 08:15:00
@@ -509,7 +509,7 @@
 #pseudo-device	tb		1	# tablet line discipline
 #pseudo-device	sequencer	1	# MIDI sequencer
 # rnd works; RND_COM does not on port i386 yet.
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 #options 	RND_COM			# use "com" randomness as well (BROKEN)
 
 # a pseudo device needed for Coda	# also needs CODA (above)
Index: i386/conf/INSTALL_SMALL
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/conf/INSTALL_SMALL,v
retrieving revision 1.98
diff -u -r1.98 INSTALL_SMALL
--- i386/conf/INSTALL_SMALL	2003/06/05 14:33:51	1.98
+++ i386/conf/INSTALL_SMALL	2003/09/05 08:15:00
@@ -489,5 +489,5 @@
 # miscellaneous pseudo-devices
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
 #pseudo-device	tb		1	# tablet line discipline
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 #options 	RND_COM			# use "com" randomness as well (BROKEN)
Index: i386/conf/INSTALL_TINY
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/conf/INSTALL_TINY,v
retrieving revision 1.71
diff -u -r1.71 INSTALL_TINY
--- i386/conf/INSTALL_TINY	2003/06/05 14:33:51	1.71
+++ i386/conf/INSTALL_TINY	2003/09/05 08:15:00
@@ -496,5 +496,5 @@
 # miscellaneous pseudo-devices
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
 #pseudo-device	tb		1	# tablet line discipline
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 #options 	RND_COM			# use "com" randomness as well (BROKEN)
Index: mac68k/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/mac68k/conf/INSTALL,v
retrieving revision 1.23
diff -u -r1.23 INSTALL
--- mac68k/conf/INSTALL	2003/04/10 22:06:59	1.23
+++ mac68k/conf/INSTALL	2003/09/05 08:15:01
@@ -194,3 +194,5 @@
 # miscellaneous pseudo-devices
 pseudo-device	bpfilter	8	# Berkeley packet filter
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: mac68k/conf/INSTALLSBC
===================================================================
RCS file: /cvsroot/src/sys/arch/mac68k/conf/INSTALLSBC,v
retrieving revision 1.14
diff -u -r1.14 INSTALLSBC
--- mac68k/conf/INSTALLSBC	2003/04/10 22:06:59	1.14
+++ mac68k/conf/INSTALLSBC	2003/09/05 08:15:01
@@ -194,3 +194,5 @@
 # miscellaneous pseudo-devices
 pseudo-device	bpfilter	8	# Berkeley packet filter
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: macppc/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/conf/INSTALL,v
retrieving revision 1.65
diff -u -r1.65 INSTALL
--- macppc/conf/INSTALL	2002/09/28 20:22:33	1.65
+++ macppc/conf/INSTALL	2003/09/05 08:15:01
@@ -164,3 +164,5 @@
 pseudo-device	md		1	# memory disk
 pseudo-device	loop			# network loopback
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: mipsco/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/mipsco/conf/INSTALL,v
retrieving revision 1.10
diff -u -r1.10 INSTALL
--- mipsco/conf/INSTALL	2003/05/03 18:10:52	1.10
+++ mipsco/conf/INSTALL	2003/09/05 08:15:01
@@ -88,3 +88,5 @@
 #pseudo-device	tun		4	# Network "tunnel" device
 pseudo-device	ccd		4	# concatenated and striped disks
 #pseudo-device	raid		4	# RAIDframe disk driver
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: news68k/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/news68k/conf/INSTALL,v
retrieving revision 1.22
diff -u -r1.22 INSTALL
--- news68k/conf/INSTALL	2003/04/10 22:07:01	1.22
+++ news68k/conf/INSTALL	2003/09/05 08:15:01
@@ -141,3 +141,5 @@
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
 pseudo-device	md		1	# memory disk device
 pseudo-device	sl		1	# SLIP interfaces
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: newsmips/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/newsmips/conf/INSTALL,v
retrieving revision 1.17
diff -u -r1.17 INSTALL
--- newsmips/conf/INSTALL	2003/05/10 04:11:53	1.17
+++ newsmips/conf/INSTALL	2003/09/05 08:15:01
@@ -103,3 +103,5 @@
 pseudo-device	loop			# loopback interface; required
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
 pseudo-device	md		1	# memory disk device
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: pc532/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/pc532/conf/INSTALL,v
retrieving revision 1.30
diff -u -r1.30 INSTALL
--- pc532/conf/INSTALL	2002/09/18 02:44:06	1.30
+++ pc532/conf/INSTALL	2003/09/05 08:15:01
@@ -56,3 +56,5 @@
 pseudo-device	sl 1				# compressed SLIP
 pseudo-device	ppp 1				# Point-to-Point Protocol
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: pmax/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/pmax/conf/INSTALL,v
retrieving revision 1.49
diff -u -r1.49 INSTALL
--- pmax/conf/INSTALL	2003/04/10 22:07:02	1.49
+++ pmax/conf/INSTALL	2003/09/05 08:15:02
@@ -147,3 +147,5 @@
 
 pseudo-device	rasterconsole	 1 	# NB: raster console requires "fb"
 pseudo-device	fb		 1	# only 1 framebuffer supported
+
+pseudo-device	rnd			# /dev/random and in-kernel generator
Index: sparc/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/conf/INSTALL,v
retrieving revision 1.39
diff -u -r1.39 INSTALL
--- sparc/conf/INSTALL	2003/04/10 22:07:04	1.39
+++ sparc/conf/INSTALL	2003/09/05 08:15:02
@@ -554,4 +554,4 @@
 ## Random device, used to implement /dev/random (a source of random noise),
 ## and generate randomness for some kernel formulae.
 
-#pseudo-device	rnd
+pseudo-device	rnd
Index: sparc64/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc64/conf/INSTALL,v
retrieving revision 1.15
diff -u -r1.15 INSTALL
--- sparc64/conf/INSTALL	2003/06/20 03:15:06	1.15
+++ sparc64/conf/INSTALL	2003/09/05 08:15:02
@@ -30,3 +30,5 @@
 ## The miniroot size must be kept in sync manually with the size of
 ## the `miniroot' image (which is built in distrib/sparc64/miniroot).
 options 	MEMORY_DISK_ROOT_SIZE=10240	# size of memory disk, in blocks
+
+pseudo-device	rnd			# /dev/random and /dev/urandom
Index: sun2/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/sun2/conf/INSTALL,v
retrieving revision 1.15
diff -u -r1.15 INSTALL
--- sun2/conf/INSTALL	2003/04/10 22:07:05	1.15
+++ sun2/conf/INSTALL	2003/09/05 08:15:02
@@ -218,8 +218,7 @@
 #pseudo-device	gif		4	# IPv[46] over IPv[46] tunnel (RFC1933)
 #pseudo-device	faith		1	# IPv[46] tcp relay translation i/f
 #pseudo-device	stf		1	# 6to4 IPv6 over IPv4 encapsulation
-# rnd is EXPERIMENTAL
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 
 pseudo-device	pty		4	# pseudo-terminals
 #pseudo-device	vnd		4	# paging to files
Index: sun3/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/sun3/conf/INSTALL,v
retrieving revision 1.20
diff -u -r1.20 INSTALL
--- sun3/conf/INSTALL	2003/04/10 22:07:05	1.20
+++ sun3/conf/INSTALL	2003/09/05 08:15:03
@@ -188,7 +188,7 @@
 pseudo-device	tun		2	# network tunneling over tty
 #pseudo-device	gre		2	# generic L3 over IP tunnel
 #pseudo-device	ipfilter		# ip filter
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 
 pseudo-device	pty		2	# pseudo-terminals (Sysinst needs two)
 #pseudo-device	vnd		4	# paging to files
Index: vax/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/vax/conf/INSTALL,v
retrieving revision 1.29
diff -u -r1.29 INSTALL
--- vax/conf/INSTALL	2002/09/18 02:44:10	1.29
+++ vax/conf/INSTALL	2003/09/05 08:15:03
@@ -211,5 +211,5 @@
 #pseudo-device	vnd	4
 #pseudo-device	ccd	4
 #pseudo-device	raid	4		# RAIDframe disk driver
-#pseudo-device	rnd			# /dev/random and in-kernel generator
+pseudo-device	rnd			# /dev/random and in-kernel generator
 pseudo-device	md	1
Index: x68k/conf/INSTALL
===================================================================
RCS file: /cvsroot/src/sys/arch/x68k/conf/INSTALL,v
retrieving revision 1.54
diff -u -r1.54 INSTALL
--- x68k/conf/INSTALL	2003/04/10 22:07:06	1.54
+++ x68k/conf/INSTALL	2003/09/05 08:15:03
@@ -334,4 +334,4 @@
 ## Random device, used to implement /dev/random (a source of random noise),
 ## and generate randomness for some kernel formulae.
 
-#pseudo-device	rnd
+pseudo-device	rnd