Gentoo's ebuild for kcm-grub2-0.6.4 does not work with GRUB 2 as installed by ebuild grub-2.00_p5107-r1 and later, as the latter ebuild has changed the GRUB 2 directory structure used in Gentoo from /boot/grub2/ to /boot/grub/. The problem is explained in more detail the kcm-grub2 developer's comment no. 1619 (https://ksmanis.wordpress.com/projects/grub2-editor/#comment-1619) on his blog page GRUB2 Editor (https://ksmanis.wordpress.com/projects/grub2-editor/). However, in a recent commit of the source code of kcm-grub2 Version 0.6.4, the developer added the ability to specify the GRUB 2 directories during the compilation of kcm-grub2. So it is now easier to accommodate the different directory structures used by different distributions. Another non-standard directory used in Gentoo, for example, is /etc/grub.d/39_memtest86+/ instead of /etc/grub.d/20_memtest+/ (by the way, the directory is created in Gentoo if you install the package sys-apps/memtest86+). So, to enable use of kcm-grub2 with GRUB 2 Version 2.00_p5107-r2 and later, the current kcm-grub2-0.6.4.ebuild in the Portage main tree needs to change as shown below: # # Here is the end of the ebuild in the Portage main tree: # tail /usr/portage/kde-misc/kcm-grub2/kcm-grub2-0.6.4.ebuild src_configure() { local mycmakeargs=( “-DWITHQApt=OFF” $(cmake-utils_use_with packagekit QPackageKit) $(cmake-utils_use_with imagemagick ImageMagick) $(cmake-utils_use_with hwinfo HD) ) cmake-utils_src_configure } # # Here is the end of the ebuild in my local overlay that works correctly: # tail -n 18 /usr/local/portage/kde-misc/kcm-grub2/kcm-grub2-0.6.4-r1.ebuild src_configure() { local mycmakeargs=( -DWITHQApt=OFF -DGRUB_INSTALL_EXE=/usr/sbin/grub2-install -DGRUB_MKCONFIG_EXE=/usr/sbin/grub2-mkconfig -DGRUB_PROBE_EXE=/usr/sbin/grub2-probe -DGRUB_SET_DEFAULT_EXE=/usr/sbin/grub2-set-default -DGRUB_MENU=/boot/grub/grub.cfg -DGRUB_CONFIG=/etc/default/grub -DGRUB_ENV=/boot/grub/grubenv -DGRUB_MEMTEST=/etc/grub.d/39_memtest86+ $(cmake-utils_use_with packagekit QPackageKit) $(cmake-utils_use_with imagemagick ImageMagick) $(cmake-utils_use_with hwinfo HD) ) cmake-utils_src_configure } Reproducible: Always
Thanks Fitzcarraldo. +*kcm-grub2-0.6.4-r1 (03 May 2014) + + 03 May 2014; Ian Whyman <thev00d00@gentoo.org> +kcm-grub2-0.6.4-r1.ebuild, + metadata.xml: + Correctly set paths for Gentoo's Grub2, thanks to Fitzcarraldo in #508462 +