Subject: Re: Lack of error message with /sbin/init and missing /dev
To: None <firstname.lastname@example.org>
From: Roberto <email@example.com>
Date: 11/15/2005 15:14:24
> In article <firstname.lastname@example.org>
> email@example.com 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
- 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.