Subject: Re: Lack of error message with /sbin/init and missing /dev
To: None <current-users@netbsd.org>
From: Roberto <roberto@redix.it>
List: current-users
Date: 11/15/2005 15:14:24
> In article <20051115143819.379b4150.lists@yazzy.org>
> lists@yazzy.org wrote:
>
>> I just accidently forgot to create /dev for my embedded image and
>> discovered /sbin/init keeps totally silent about that.
>
> At least src/sys/kern/init_main.c:check_console() warns
> if there is no /dev/console.
>
> Anyway, I think init(8) can't print any messages without device node.
> ---
> Izumi Tsutsui
>

According to me, when no /dev/console was found, on 2.x init perform the
following:
 - mmap /dev/MAKEDEV and MAKEDEV.local file;
 - create a /dev memory fs;
 - save the new /dev/MAKEDEV* on mem. fs;
 - create the device files;

I remember the following output:
     ...
     warning: no /dev/console
     init: Creating mfs /dev
     ...

At least, the kernel should output "no /dev/console" I think.

Regards,
Roberto