Bug 127045

Summary: Grub restart option does not parse menu.lst file correctly
Product: kdm Reporter: Thomas De Schampheleire <kdebug>
Component: generalAssignee: kdm bugs tracker <kdm-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: fix. compiles, but otherwise totally untested.

Description Thomas De Schampheleire 2006-05-09 21:22:14 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Slackware Packages
OS:                Linux

In the restart-dropdown menu of KDE (after telling KDE I use grub) only those Grub-entries are showed whose 'title' attribute starts at the beginning of the line, and not if there is any whitespace before it.

For example, using the following menu.lst file:
------------------------------------
  title Linux 2.6.15-mod
  root (hd0,4)
  kernel /boot/bzImage-Antarctica-2.6.15-mod root=/dev/hda5 ro 

title Linux 2.6.15
root (hd0,4)
kernel /boot/bzImage-Antarctica-2.6.15 root=/dev/hda5 ro 

     title Linux 2.6.14-2
root (hd0,4)
kernel /boot/bzImage-Antarctica-2.6.14-2 root=/dev/hda5 ro 

#Windows
title Windows
rootnoverify (hd0,0)
chainloader +1
makeactive
-------------------------------------

only the linux-2.6.15 and windows entries would be displayed in the restart drop-down menu. The two other entries do no appear due to the whitespace before their title.
When I remove the whitespace, KDE displays it correctly.

Grub itself however does not have any problems whatsoever with this indentation, so I believe this should be qualified as a bug.
Comment 1 Oswald Buddenhagen 2006-05-09 21:52:39 UTC
Created attachment 15992 [details]
fix. compiles, but otherwise totally untested.
Comment 2 Oswald Buddenhagen 2006-10-13 19:16:36 UTC
fixed for kde 3.5.5 and 4.0