/dev/console virtualization, somehow? [message #15360] |
Fri, 27 July 2007 22:32  |
errge
Messages: 1 Registered: July 2007
|
Junior Member |
|
|
Hi,
Can I somehow get /dev/console virtualized? I want a file (e.g. /var/log/boot.log) which shows boot messages after successful boot.
I tried to simply create a plain file as /dev/console, it works, but I don't see every message and messages get periodically overwritten.
I tried /sbin/init rename+CONSOLE env var hack, it works too, but I don't see every message (for example Debian's network initialization's output is surely not there).
Is there any plan to correctly virtualize /dev/console, terminals, etc., if there is, when can that happen?
'vzctl console 100' will be a very nice feature...
Thanks for your work,
Gergely
|
|
|
|
Re: /dev/console virtualization, somehow? [message #15407 is a reply to message #15391] |
Mon, 30 July 2007 07:02  |
den
Messages: 494 Registered: December 2005
|
Senior Member |
|
|
I think that this could be solved in userspace without the kernel intervention.
The idea is simple:
- kernel boot messages will not be printed and they are not interested for the case
- userspace boot messages could be printed to ANY virtual terminal
- if allocate a terminal at startup by something like a 'screen' and link /dev/console to it the messages will be there
The idea is not yet proven, but seems doable.
Regards,
Den
|
|
|