lkml.org 
[lkml]   [1998]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: boot disk problems
Date
From

ebiederm+eric@npwt.net said:
> You need a /dev/console. Because the kernel uses the open system
> call at boot up to open it.

> Personally I think the need for this is a bad hack and someone was
> just lazy.

It was understandable when /dev/console was a symlink to whatever device was
supposed to be used. Now the console is a separate device, and the redirection
is handled internally by the kernel, perhaps it could be replaced by opening
device (5,1) instead.

I've just taken a look at the code, though, and it doesn't look like a very
simple operation. The kernel currently uses the sys_open syscall to open the
console, but would have to have a specific device open routine to generate a
fake dentry and fill it. I have a nasty suspicion that we're not allowed to
use the stack at that point either.


--
---- ---- ----
David Woodhouse, Robinson College, CB3 9AN, England. (+44) 0976 658355
dwmw2@cam.ac.uk http://dwmw2.robinson.cam.ac.uk
finger pgp@dwmw2.robinson.cam.ac.uk for PGP key.



\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.014 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site