Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242736 - kde-base/kdm-4.1.2 fails to set grub default for reboot
Summary: kde-base/kdm-4.1.2 fails to set grub default for reboot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL: http://bugs.kde.org/show_bug.cgi?id=6...
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks: 277868
  Show dependency tree
 
Reported: 2008-10-19 09:55 UTC by wakatanka
Modified: 2010-02-16 19:09 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A diff-file to make the needed changes to KDM's backend/bootman.c (bootman.diff,832 bytes, text/plain)
2008-10-19 10:02 UTC, wakatanka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wakatanka 2008-10-19 09:55:53 UTC
When using GRUB as boot manager and wanting to reboot to a specific entry of the boot menu, KDM displays the available options quite fine but fails to store the selected option. The recommended way is to call /sbin/grub-set-default to store the selected option as default for the next boot. KDM doesn't do this.
The KDE 3.5 behaved the same way. The Gentoo ebuild for kde-base/kde applied a patch to fix this (see e.g. bug bug #153566). There is a upstream bug for KDE, but it is still not fixed (bug #63800 of KDE).

Reproducible: Always

Steps to Reproduce:
1. Activate KDE logout menu.
2. Select one of the 'non standard default' GRUB entries.
3. Let computer reboot.

Actual Results:  
Reboots into the 'standard default' GRUB entry, not the one selected.

Expected Results:  
Reboot to the selected 'non standard default' GRUB entry.

A patch very similar to the one used in KDE 3.5 series can be applied for 4.1.2 too. We need the diff and a change to the current ebuild for KDM.
Comment 1 wakatanka 2008-10-19 10:02:29 UTC
Created attachment 169060 [details]
A diff-file to make the needed changes to KDM's backend/bootman.c
Comment 2 Walter 2008-11-28 15:02:30 UTC
Same problem here with KDE 4.1.3 and grub 0.97. The proposed patch solved the issue. 
Comment 3 Maciej Mrozowski gentoo-dev 2009-09-14 23:17:09 UTC
Please update to 4.3.1 and see whether still applies. Also please try attached patch.
Comment 4 Tobias Kaminsky 2009-10-12 14:51:57 UTC
(In reply to comment #3)
> Please update to 4.3.1 and see whether still applies. Also please try attached
> patch.
> 

Trying 4.3.2 with and without patch. All does not work.
"grub-set-default 4" also does not boot in the right kernel for me.

Can someone confirm this with grub-0.97-r9?

Finswimmer
Comment 5 wakatanka 2009-10-13 09:09:47 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Please update to 4.3.1 and see whether still applies. Also please try attached
> > patch.
> > 
> 
> Trying 4.3.2 with and without patch. All does not work.
> "grub-set-default 4" also does not boot in the right kernel for me.
> 
> Can someone confirm this with grub-0.97-r9?
> 
> Finswimmer
> 

Both the grub-set-default command and 4.3.1 ebuild work fine for me.
Did you set up your grub menu to work with the saved default?
You would need to include "default saved" at the top of the file (see also the added attachment for a simple example grub menu).

The bug seems also to be fixed in KDE svn now (see http://websvn.kde.org/?revision=1030993&view=revision).
Comment 6 wakatanka 2009-10-13 09:24:41 UTC
(In reply to comment #5)
> ... 
> (see also the added attachment for a simple example grub menu).
> ...

OK, bugzilla hates me. Can't attach the example for some reason. As it is rather short, added it below.


default saved
timeout 5
splashimage=(hd0,4)/grub/splash.xpm.gz

title Gentoo - KMS
    kernel (hd0,4)/kernel1 root=/dev/hda8 desktop CONSOLE=/dev/tty1
    # switch back to have the first entry as default
    savedefault 0

title Gentoo - vesafb
    kernel (hd0,4)/kernel-current root=/dev/hda8 desktop video=vesafb:ywrap,pmipal vga=0x376 CONSOLE=/dev/tty1
    # switch back to have the first entry as default
    savedefault 0
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2010-02-16 18:52:09 UTC
Ping - has anyone seen this bug still on KDE 4.3.4 or later?
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-02-16 19:09:35 UTC
(In reply to comment #7)
> Ping - has anyone seen this bug still on KDE 4.3.4 or later?
> 

Actually 4.3.5 is the next stable, ...

This appears to be fixed by now,

http://websvn.kde.org/?revision=1030993&view=revision