In Gentoo grub2 tools are labeled 2 (grub2-*). However, in the kdm code hard-coded path without 2. Attached patch solves this problem. Reproducible: Always
Created attachment 310133 [details] kdm-4.8.2-grub2_support.patch
Ack by me
Thank you, patch committed. + 26 Apr 2012; Johannes Huber <johu@gentoo.org> +files/kdm-4.8.2-grub2.patch, + +kdm-4.8.2-r1.ebuild: + Add patch to fix grub:2 support by Egor Y. Egorov <egorov_egor@bk.ru> wrt bug + #413585.
I just found this in my logs: kdm[2315]: Cannot execute 'grub-reboot': not in $PATH. That is using kde-base/kdm-4.8.3 - any idea what is wrong here?
(In reply to comment #4) > I just found this in my logs: > kdm[2315]: Cannot execute 'grub-reboot': not in $PATH. > > That is using kde-base/kdm-4.8.3 - any idea what is wrong here? In 4.8.3, an extended version of this patch was accepted upstream - it detects what to do at runtime. Can you confirm that /boot/grub2/grub.cfg exists?
(In reply to comment #5) > Can you confirm that /boot/grub2/grub.cfg exists? /boot is on a separate partition. On that partition the file exists, but not during regular runtime.
(In reply to comment #6) > /boot is on a separate partition. On that partition the file exists, but not > during regular runtime. I believe grub2-reboot requires /boot to be mounted in order to work - it writes to /boot/grub2/grubenv with the entry to use on next reboot.
(In reply to comment #7) > (In reply to comment #6) > > /boot is on a separate partition. On that partition the file exists, but not > > during regular runtime. > > I believe grub2-reboot requires /boot to be mounted in order to work - it > writes to /boot/grub2/grubenv with the entry to use on next reboot. So what do you suggest? Fixing grub-reboot to automatically mount /boot?
(In reply to comment #8) > So what do you suggest? Fixing grub-reboot to automatically mount /boot? I am not sure that auto-mounting is such a good idea, but I don't really know what to suggest.
(In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #6) > > > /boot is on a separate partition. On that partition the file exists, but not > > > during regular runtime. > > > > I believe grub2-reboot requires /boot to be mounted in order to work - it > > writes to /boot/grub2/grubenv with the entry to use on next reboot. > > So what do you suggest? Fixing grub-reboot to automatically mount /boot? I would suggest to just change your mount options for /boot partition in /etc/fstab. I tested the kdm integration with 4.8.3 and it works like a charm yesterday. Greetings.