Subject: Re: Manually created console in /dev
To: Jukka Salmi <email@example.com>
From: David Brownlee <abs@NetBSD.org>
Date: 06/30/2005 17:03:21
On Thu, 30 Jun 2005, Jukka Salmi wrote:
> Marcin Jessa --> current-users (2005-06-30 17:07:02 +0200):
>> I dont know if it's a bug but when I manually create console device in empty /dev on a drive with mknod console c 0 0 then boot that drive, init does not create any new devices in /dev. I did not test it creating any other devices.
>> Kernel version 3.99.6.
> This is not a bug. Read src/sbin/init/init.c:
> static int
> /* If we have /dev/console, assume all is OK */
> if (access(_PATH_CONSOLE, F_OK) != -1)
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....
David/absolute -- www.NetBSD.org: No hype required --