This is my first post on Planet KDE, but uh-oh no introductions. Some of you may already know me; the rest of you should just wait for an introductory post (I must get to write one of those sooner or later).
I don’t want to tire you, so long story short: KDM has just gained GRUB2 support. What this means is that you are now able to reboot-once in another GRUB entry without affecting your default one:
This patch can be found in KDE Git (commit) and should be in for 4.7. Configuration instructions can be found here. Enjoy

wow, that’s awesome, thanks! been waiting for this for a while! any idea on how to integrate this with kickoff? for those of us who don’t use the shutdown dialog
also, on kubuntu after a while I tend to have a “lot” of grub entries, is it possible to configure which entries are shown in the reboot dialog? it may be even better to show just the latest linux entry, maybe fallback, and windows?
Kickoff goes through the shutdown dialog, doesn’t it? At least on my PC, when I click Restart I get the shutdown dialog with Restart as the only option.
No, not possible to configure which entries are shown in the reboot dialog, that would be overconfiguration. Just try to reduce the grub entries by removing old kernels and recovery entries. For the latter I would suggest to use my GRUB2 Editor, provides many other configuration options as well.
thanks for the GRUB2 editor link, interesting software. I have disabled the shutdown dialog under system settings – session management, as it seemed unnecessary to me, with this feature it possibly isn’t anymore.
maybe the reboot option under kickoff could be turned into a menu entry which leads to the different reboot options? like the application entries, e.g. internet -> different programs… hmm not sure if that’s a good idea, I’ll think about it some more
Under Ubuntu you must remove (using the package manager synaptic or muon or …) the kernel packages with an old number (and only those), for example if your latest kernel is 2.6.35-28 (and you have booted into it and you know that it works for you), then you remove linux-headers-2.6.35-27, linux-headers-2.6.35.27-generic, linux-image-2.6.35-27-generic (and other kernel packages with the number 2.6.35-27 that you may have installed) and similar for older versions. If all three packages are removed then automatically the entry for kernel 2.6.35-27 is also removed from the grub menu (so you don’t have to use the GRUB2 Editor).
Yep, currently that’s the way. I plan to include such a functionality in the graphical editor though, to automate the process (remove all three old kernel packages if the user wishes to make his GRUB entry list smaller). Seems to be quite a popular wishlist.
Edit: Done!
awesome
Thanks, I love this nifty feature
@masteryod, IAnjo: Thanks, just tuning KDE bits here and there to make it more usable
I have long missed this feature too, that’s why I implemented it.
I’m sure this feature was implemented in one of the first distro I tried 5-6 years ago (Fedora core 2,maybe?), and I was wondering why It’s not present in modern distributions anymore..thanx ksmanis!
True, but it never worked for me, only once (can’t remember distro too).
I remember it being in Suse 11.1, I’m not sure if it worked or not.
In any case, it seems very useful for dual-boot.
SUSE has had it for years and it works perfectly. I use it all the time.
Pingback: KDE 4.7 – KDM aggiunge il supporto al Grub2 « Ubuntu Secrets
Pingback: SOURCES.LIST Aggregator » Blog Archive » KDE 4.7 – KDM aggiunge il supporto al Grub2
Pingback: Planeta jakilinux.org » Nowości KDE SC 4.7 cz. 5 – Wsparcie dla GRUB2 w KDM
Su-weeeeet! The number of times I’ve had to sit around waiting for my computer to get to GRUB when I’ve been wanting to run around and get other stuff done. Sexy, indeed!
Hmm, that is a new feature? With openSuSE it has been working for me since years…
It’s been working for GRUB Legacy probably, not GRUB2
Pingback: KDM的GRUB2支持 | I, KDE
Pingback: KDM z KDE SC 4.7 wspiera GRUB2 | GRUB2, KDE SC, KDM, Kubuntu
Pingback: KDM supporta le opzioni di GRUB2 per riavviare il sistema da KDE 4.7 | Follia Digitale
Pingback: KDM supporta le opzioni di GRUB2 per riavviare il sistema da KDE 4.7 | CorryL's Blog
what about krunner support? can you type reboot and get a list of options as autocomplete?
As I see in my setup, reboot invokes the shutdown dialog so you get the list from there. You can’t get the list in the KRunner dialog.
Pingback: KDM supporta le opzioni di GRUB2 per riavviare il sistema da KDE 4.7 | Indipedia – Indipendenti nella rete
Nice! Just a week ago I posted a less-elegant way of doing this (http://fitzcarraldoblog.wordpress.com/2011/04/17/reboot-button-which-allows-you-to-specify-which-grub-2-menu-entry-to-boot/), which would work in KDE or other desktop environments, so it’s good to see that a slicker method will be built-in to KDE 4.7.
Cool, just trying to make KDE more user-friendly
Pingback: KDM supporta le opzioni di GRUB2 per riavviare il sistema da KDE 4.7
Pingback: Hello planet! « Tranquility
hmm I’m running kde from trunk (on natty), modified /etc/default/grub and ran update-grub2, rebooted but I still can’t see any option menu for the reboot action
I’ve even tried to tun grub-mkconfig, and still nothing.
Do you have any idea about where I’m wrong?
Cheers
Please post your /etc/default/grub and /boot/grub/grub.cfg configuration files. Use paste.kde.org
Sorry for the late reply, I was kinda busy these days
However, here you are the paste:
* /etc/default/grub: http://paste.kde.org/56935/
* /boot/grub/grub.cfg: http://paste.kde.org/56965/
Hope you can spot the problem
Ah, you have to select ‘Grub2′ as your bootloader under ‘System Settings > Login Screen > Shutdown > Boot manager’ so that KDM knows you’re using GRUB2. I failed to mention this in the post.
Pingback: KDE 4.7 beta is OUT
Pingback: Началось бета-тестирование KDE 4.7 | AllUNIX.ru – Всероссийский портал о UNIX-системах
Pingback: Llega KDE SC 4.7 Beta 1
Pingback: Berita 45 : KDE 4.7 Beta 1 Sudah Hadir untuk Diuji « Tanya Reza Ervani Tentang LINUX
Pingback: KDE 4.7 Beta has been released | Ubuntu Corner
Pingback: First beta of KDE 4.7 arrives for testing – Mr Pod Blog
Pingback: LinuxCentrum.pl – Twoje Centrum Informacji o Linuksie i Open Source » Pierwsza beta KDE 4.7
Ah I think I rememebr that Linux-Mandrake (now Mandriva) had a patch doing just that on KDM since the version that was released on Jan/2001 (7.1 I think!)
Pingback: KDE 4.7 – A First Look At Beta 1 « Linux « Technology « Theory Report
First of all EYXARISTW:) (ie thanks)
I’ve been waiting for this for quite some time.
Now, would it be possible to also add support for ?
It is a grub2 fork that uses more or less the same mechanism but slightly different filenames.
eg. /boot/burg/burg.cfg and burg-reboot instead of /boot/grub/grub.cfg and grub-reboot
Sorry, I messed up the href tag in the above post. It should read:
…also add support for burg?
Sure, BURG has been appended in my TODO list but I don’t know when exactly it will be available. Perhaps in the next release or in 2-3.
Thanks.
Hello Kostas,
Do you work for a Greek company or for the Greek public sector?
Or do you work outside Greece?
I’m unemployed; studying electrical & computer engineering at a Greek university (undergraduate).
Pingback: Вышел кандидат в релизы KDE 4.7 | AllUNIX.ru – Всероссийский портал о UNIX-системах
Pingback: KDE SC 4.7 RC1 nos prepara para la versión final
Pingback: Rilasciato KDE 4.7 RC1 « KDE (in) Italia e slacky – amici, nemici e modi di essere
Pingback: Вышел кандидат в релизы KDE 4.7
Pingback: Anonymous
Hands off the bootloader! If it works as well as some releases of plasma, machines will be turned into a bricks just when needed the most.
It’s really impossible to break stuff with this.
Pingback: Релиз KDE SC 4.7, обзор новшеств | AllUNIX.ru – Всероссийский портал о UNIX-системах
Nice feature! I followed all the configuration steps, but this is not working for me though. When I click & hold on the Restart button I can see a drop-down list with different OS. Then I select one of them but after reboot the machine doesn’t launches the OS I’ve selected. Do you have any clue?
After setting GRUB_DEFAULT=saved in /etc/default/grub update your GRUB menu using grub-mkconfig -o /boot/grub/grub.cfg. If this doesn’t work, post your GRUB config files.
I’ve tried your last tip, but it still doesn’t reboot on the selected OS. Here are my files:
- /etc/default/grub: http://paste.kde.org/105379/
- /boot/grub/grub.cfg: http://paste.kde.org/105385/
Thanks for your help! I appreciate it a lot!
Your config files seem fine. Can I have a look at /boot/grub/grubenv too? Also post the output of the ‘kdmctl listbootoptions’ command.
OK, here you have:
- /boot/grub/grubenv: http://paste.kde.org/105415/
- output of the ‘kdmctl listbootoptions’ command: http://paste.kde.org/105421/
Thanks again!
Also fine. Long-pressing ‘Restart Computer’ and selecting Windows for example doesn’t boot into it? That’s wierd if Ubuntu is your sole Linux distribution.. :/
That is exactly what happens. Maybe is a grub2 conflict since I installed it when it was version 1.9x or something like that, not shipped with Kubuntu. And I don’t have a fresh install of it; I’ve been upgrading the distro for a couple of releases. Thanks anyway for your help!
Pingback: Новости компьютерного мира - Релиз KDE SC 4.7, обзор новшеств
Pingback: KDE 4.7 – A First Look At Beta 1 | everyday linux how2s