Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 1996 05:34:14 -0800
From:      Poul-Henning Kamp <phk@critter.tfs.com>
To:        davidg@Root.COM
Cc:        Terry Lambert <terry@lambert.org>, julian@ref.tfs.com (JULIAN Elischer), scrappy@ki.net, current@freebsd.org
Subject:   Re: DEVFS vs "regular /dev" 
Message-ID:  <678.827415254@critter.tfs.com>
In-Reply-To: Your message of "Thu, 21 Mar 1996 05:31:11 PST." <199603211331.FAA05288@Root.COM> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >> >> >So you don't need a mounted root to have a mounted /dev, of course!
> >> >> 
> >> >>    That's silly. The root filesystem is mounted long before /dev would 
be,
> > 
> >> >
> >> >Not that long before.  /sbin/init will have to mount it to get in touch
> >> >with /dev/console, /dev/null and ...
> 
>    I just re-read what you said...I think you might have read what I wrote
> backwards - the root filesystem is mounted automagically in the kernel very
> early in system startup. /dev, whether it's done in the kernel or in
> /sbin/init, would be done quite a bit later in relative terms.
well, yes, "later" in relative terms, but not many actual seconds though :-)

>    If we do the mount in /sbin/init and it fails for some reason (like the
> mount point doesn't exist), then we'll have no way to inform the operator
> (there isn't a /dev/console to write to). If we do it in the kernel, we can
> emit a message saying "/dev: not found" or something.

I think sbin/init should be started with stdin+stdout pointing to console
for this and other reasons as well.

--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@ref.tfs.com       TRW Financial Systems, Inc.
Future will arrive by its own means, progress not so.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?678.827415254>