Subject: Re: Manually created console in /dev
To: David Brownlee <abs@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: current-users
Date: 06/30/2005 09:12:12
>  	There is definitely a bug in the init(8) manpage for not
>  	describing the fact it will create an mfs and run MAKEDEV
>  	on it if /dev/console is not found....

Index: sbin/init/init.8
===================================================================
RCS file: /cvsroot/src/sbin/init/init.8,v
retrieving revision 1.33
diff -b -u -r1.33 init.8
--- sbin/init/init.8	20 Jun 2005 13:25:26 -0000	1.33
+++ sbin/init/init.8	30 Jun 2005 16:11:00 -0000
@@ -337,6 +337,19 @@
 .Nm
 process cannot be located, the system will panic with the message
 .Dq panic: init died (signal %d, exit %d) .
+.Pp
+If /dev/console does not exist,
+.Nm
+will create a MFS (memory based file system) mounted over /dev.
+Then it will create a /dev/console device so you can see things happening.
+The
+.Xr MAKEDEV 8
+and MAKEDEV.local scripts are placed in the new /dev directory.
+Then
+.Nm
+changes the working directory to /dev and runs the scripts using the
+``init'' special target.
+This creates the standard devices considered necessary to boot the system.
 .Sh FILES
 .Bl -tag -width /var/log/wtmp -compact
 .It Pa /dev/console
@@ -377,6 +390,8 @@
 .Xr ttys 5 ,
 .Xr getty 8 ,
 .Xr halt 8 ,
+.Xr MAKEDEV 8 ,
+.Xr mfs 8 ,
 .Xr rc 8 ,
 .Xr reboot 8 ,
 .Xr shutdown 8


 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/