bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting kernel console based on grub console?


From: jamesp
Subject: Setting kernel console based on grub console?
Date: Thu, 9 Sep 2004 16:22:06 +0100
User-agent: Internet Messaging Program (IMP) 3.2.4

Hi All

I am using grub on a small machine that's normally headless, so I have these
entries in my grub.conf:

terminal --timeout=5 serial console
kernel /bzImage console=ttyS0,38400

This works great. However if I hit the key on bootup on a real console, I of
course get the grub screen, but no kernel messages, since it's still using the
serial console.

I'd like something like this in stage2, but don't really know how to do it
myself:

if current_term->name = serial
  append "console=ttyS0,38400" to kernel parameters // Serial console
else
  append nothing // default console

Is this feasible?

Cheers!

James




reply via email to

[Prev in Thread] Current Thread [Next in Thread]