Bug 204941 - Grub reboot options do not work in KDE 4.3
Summary: Grub reboot options do not work in KDE 4.3
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kdm (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2009-08-24 08:32 UTC by Dotan Cohen
Modified: 2018-10-21 04:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dotan Cohen 2009-08-24 08:32:01 UTC
Version:            (using KDE 4.3.0)
Installed from:    Ubuntu Packages

Systemsettings -> Advanced -> Login Manager -> Shutdown

Configuring Grub as the boot loader does not bring up the Grub options on restart in KDE 4.3. Tested on Kubuntu and OpenSuse.
Comment 1 Oswald Buddenhagen 2009-10-04 21:01:36 UTC
are you using grub2 by any chance?
Comment 2 Dotan Cohen 2009-10-06 13:57:33 UTC
No, no grub2 on the Kubuntu install. I do not have the OpenSUse install to check, but I do not think that it was grub2 either.
Comment 3 Thomas Bächler 2009-10-25 13:36:55 UTC
To my knowledge, this has never worked. I looked at the code and it is simply wrong. The code launched "grub --batch --no-floppy" and executes the grub command "savedefault --default=$N --once" where $N is the OS index it determined earlier.

Doing this in the console simply leads to "Error 27: Unrecognized command". The correct way is to simply run "/sbin/grub-set-default $N".

Whoever wrote this code clearly didn't test it at all.
Comment 4 Thomas Bächler 2009-10-25 13:49:52 UTC
Even worse, the code gets the value of the "default" option and converts it to an integer - however, setting the default for the next boot only works if the option is "default saved", and "saved" will clearly fail on atoi().

Failure should be returned if this is anything other than "saved". If it is set to "saved", the default can be read from /boot/grub/default.
Comment 5 Mark Goldstein 2009-10-25 13:51:50 UTC
At least it works fine in KDE-3 on OpenSUSE 11.0 and 11.1 (and older). I believe it is really changing "default" to specified index for one reboot (by adding file "default" into grub directory).
Comment 6 Thomas Bächler 2009-10-25 14:00:37 UTC
Last time I used KDE on SuSE, it was heavily patched, so I wouldn't take SuSE as an example for how good features in kde work or don't work.
Comment 7 Oswald Buddenhagen 2009-10-25 15:07:30 UTC
thomas' comments are clearly meant for (fixed) bug 63800.

however, that does not explain why the options do not "come up" at all. please be more specific. is the shutdown button no menu button? or does it have no choices in it? are you talking about the shutdown dialog in kdm or the logout dialog of kde?
Comment 8 Thomas Bächler 2009-10-25 15:21:54 UTC
Crap, I should learn.to/read, sorry.
Comment 9 Dotan Cohen 2009-10-25 23:21:37 UTC
@Oswald:
I don't remember what I was triaging, sorry. It was another user's issue and he is unavailable at the moment.

In Systemsettings -> Advanced -> Login Manager -> Shutdown I have set Grub as the boot manager. What sort of KDE integration should I expect?
Comment 10 Mark Goldstein 2009-10-26 06:52:49 UTC
Dotan,

It was not my report, I am not using 4.3 yet, but in KDE3 when you chose the GRUB as boot manager, KDE adds all GRUB options to "restart" button in "logout" dialog box. That is, "restart" button has drop-down box. If you press small triangle, you receive the list of possible boot options (different OSs you defined in GRUB) and you can chose right here what system do you want to boot. I use it quite often. I know that in some previous version of OpenSUSE there was a problem that GRUB has not been automatically substituted as boot manager and then no restart options existed. As soon as I've chosen GRUB, the restart options re-appeared.
Comment 11 Andrew Crouthamel 2018-09-20 03:14:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Andrew Crouthamel 2018-10-21 04:28:05 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!