bugGNU GRUB - Bugs: bug #30507, way to read out configured serial...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30507: way to read out configured serial parameters

Submitted by:  Mario 'BitKoenig' Holbe <holbe>
Submitted on:  Wed 21 Jul 2010 12:13:21 PM UTC  
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  other Reproducibility:  None
Planned Release:  2.03+

Wed 28 Jul 2010 09:59:06 PM UTC, comment #2:

> This is a good idea but I have to think how to implement it.


Hmmm, grub has no piping and no while read... has it? :)
What about serial --id <id> --eport and only export the config of one of the lines at a time to a predefined set of variables?

> The problem is that several simultaneous terminals may be active and in "usb" branch even multiple serial ones


Ha! Multiple simultaneous serial terminals - great! I have a terminal-server for remote-management and a local VT320 terminal here, hurry up ;)

Mario 'BitKoenig' Holbe <holbe>
Wed 28 Jul 2010 02:18:02 PM UTC, comment #1:

This is a good idea but I have to think how to implement it. The problem is that several simultaneous terminals may be active and in "usb" branch even multiple serial ones (e.g. one for management card and another for braille display)

Vladimir Serbinenko <phcoder>
Project Administrator
Wed 21 Jul 2010 12:13:21 PM UTC, original submission:

It would be great for grub.cfg scripting if there were a way to read-back once configured parameters from the serial command.

For example:
If there was a way to read out configured serial parameters, it would be possible to generatate console= configuration items for linux and/or memtest86+ based on grubs serial configuration.

I'm sure there are other examples for other commands where a similar functionality would also be great (like terminals configuration, like RAID configuraion, ...).

Of course, in this special case it would be possible to store the parameters for the serial command in separate variables, configure serial with them, and re-use the variables later for other configuration items. I'm not sure whether or not this is the "grub way to do it". It would just be easier to be able to read the configuration back from the serial command than trying to keep variables and the real configuration in sync.

Mario 'BitKoenig' Holbe <holbe>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by holbe (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-02 phcoder Planned ReleaseNone => 2.03+

    Back to the top


    Powered by Savane 3.3