bugGNU GRUB - Bugs: bug #29668, Long lines with all boot...

 
 

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

bug #29668: Long lines with all boot parameters in grub.cfg

Submitter:  Alain SAURAT <maisondouf>
Submitted:  Sun 25 Apr 2010 09:04:55 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Action Request
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name:  Maisondouf
Open/Closed:  Closed Release:  1.98
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 30 Apr 2010 07:26:13 AM UTC, comment #1: 

Part --class ubuntu --class gnu-linux --class gnu --class os is useful. If it causes any bug in os-prober please report it to debian-installer team

Vladimir Serbinenko <phcoder>
Group administrator
Sun 25 Apr 2010 09:04:55 PM UTC, original submission:  

Recently I have seen this kind of line in grub.cfg:
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {

It seem to be due to the script "/usr/lib/linux-boot-probe/mounted/40grub2"

# The double-quoted string is the title.
title="$(echo $@ | sed 's/.*"\(.*\)".*/\1/' | sed 's/://g')"

In fact this line work to isolate the final text of the 'menuentry' but search for a double-quoted string

I try to correct this with adding a few lines in it just after.



# or in fact simple-quoted string ....
prime=${title:0:1}
if [ "$prime" = "'" ]; then
  title="$(echo $@ | sed "s/.*'\(.*\)'.*/\1/" | sed 's/://g')"
fi
------

I test if the result begin with a simple-quote, and if yes I reverse the 'sed' argument to isolate a simple-quoted string


So, the line in grub.cfg become :

menuentry "Ubuntu, avec Linux 2.6.32-21-generic" {


pay attention, I was obliged to use 'bash' instead of 'sh' for character test.
Perhaps an equal solution can be found with 'sh'

Thanks, Alain


Alain SAURAT <maisondouf>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #20332:  40grub2 added by maisondouf (2KiB - application/octet-stream - 40grub2 but with a lot of echo for debuging)

 

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 maisondouf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-30 phcoder Open/ClosedOpen Closed
    2010-04-30 phcoder StatusNone Invalid
    2010-04-25 maisondouf Attached File- Added 40grub2, #20332

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code