Bug 127045 - Grub restart option does not parse menu.lst file correctly
Summary: Grub restart option does not parse menu.lst file correctly
Status: RESOLVED FIXED
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-09 21:22 UTC by Thomas De Schampheleire
Modified: 2008-05-19 17:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
fix. compiles, but otherwise totally untested. (921 bytes, patch)
2006-05-09 21:52 UTC, Oswald Buddenhagen
Details

Note You need to log in before you can comment on or make changes to this bug.
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