Bug 88257 - while using multiple terminal selection on grub, the selected terminal is not propagated to the kernel
while using multiple terminal selection on grub, the selected terminal is not...
Product: Red Hat Raw Hide
Classification: Retired
Component: grub (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Jeremy Katz
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2003-04-08 04:34 EDT by Arenas Belon, Carlo Marcelo
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-08 20:39:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch that applies to 0.93-5 to add the option detailed (1.21 KB, patch)
2003-04-08 04:37 EDT, Arenas Belon, Carlo Marcelo
no flags Details | Diff
file with the configuration files shown for the test case (860 bytes, application/octet-stream)
2003-04-08 04:51 EDT, Arenas Belon, Carlo Marcelo
no flags Details

  None (edit)
Description Arenas Belon, Carlo Marcelo 2003-04-08 04:34:24 EDT
Description of problem:

if a command like :

  terminal --timeout=10 serial console

is used on the grub configuration, a polling process is started that allow the 
user to select the terminal where it is connected and that is going to be used 
as input/output for the grub console.

after any key is pressed or the timeout is reached, the console selected (the 
first one if no key is pressed) is being used to display the menu and gather 
input for the user.  the problem is that if a linux kernel is selected, there 
is no way to notify the kernel which console was selected by the boot loader 
and therefore the boot console used by the kernel is selected again using the 
linux kernel heuristics (if a console parameter is used, that console is 
selected, if several console parameters where used, the output goest to all the 
consoles defined and the input is received from the last one selected, if none 
console parameter is used, the kernel tests for a vga card and if it founds one 
it uses that as a console or the first serial port)

Version-Release number of selected component (if applicable):

Actual results:

the console selected by the kernel depends on the "console" parameters appended 
or in its own heuristic without any clue from the boot loader

Expected results:

if the serial console is selected, the kernel should get notified that it is 
running on a serial console and its configuration from the bootloader, and the 
parameters used should match the terminal selected

Additional info:

in order to allow different parameters to be appended to the kernel 
conditionally a conditional parameter has been added to configutil to allow it 
to load a different configuration for each terminal defined.

the first configuration is loaded (grub.conf) that allows the user to select a 
terminal, then a different configuration is loaded for each posible terminal 
being selected (grub-serial.conf or grub-console.conf).

using this process, the user is allowed to use any option that matches its 
selected terminal on a terminal by terminal basis (console parameters, splash 
images, special titles)
Comment 1 Arenas Belon, Carlo Marcelo 2003-04-08 04:37:20 EDT
Created attachment 90993 [details]
patch that applies to 0.93-5 to add the option detailed

could be used on older versions and the latest CVS too
Comment 2 Arenas Belon, Carlo Marcelo 2003-04-08 04:51:41 EDT
Created attachment 90994 [details]
file with the configuration files shown for the test case
Comment 3 Jeremy Katz 2003-04-08 20:39:07 EDT
This isn't something that's going to be added as a local patch and doesn't
really make a whole lot of sense to me.  If you do an install using a serial
console, then anaconda will set up both grub and the post-install kernel for use
with serial consoles.

If you feel strongly about it, feel free to file in the upstream bug reporting
system at http://bugcomm.enbug.org/?project=grub&mode=project

Note You need to log in before you can comment on or make changes to this bug.