Created attachment 365652 [details, diff] grub-2.02_beta1-test_for_executable_scripts.patch I only use /etc/grub.d/40_custom file to get my grub.cfg created by grub-mkconfig. But since grub-2.02_beta1 this fails: breakmygentoo:~ # ls -l /etc/grub.d/ total 100 -rw-r--r-- 1 root root 8606 Dec 19 07:50 00_header -rw-r--r-- 1 root root 6107 Dec 19 07:50 10_hurd -rw-r--r-- 1 root root 2114 Dec 19 07:50 10_illumos -rw-r--r-- 1 root root 8374 Dec 19 07:50 10_kfreebsd -rw-r--r-- 1 root root 9706 Dec 19 07:50 10_linux -rw-r--r-- 1 root root 6737 Dec 19 07:50 10_netbsd -rw-r--r-- 1 root root 3481 Dec 19 07:50 10_xnu -rw-r--r-- 1 root root 10003 Dec 19 07:50 20_linux_xen -rw-r--r-- 1 root root 10879 Dec 19 07:50 30_os-prober -rw-r--r-- 1 root root 197 Jul 2 2012 39_memtest86+ -rwxr-xr-x 1 root root 1349 Dec 12 20:22 40_custom* -rw-r--r-- 1 root root 216 Dec 19 07:50 41_custom -rw-r--r-- 1 root root 483 Dec 19 07:50 README breakmygentoo:~ # grub-mkconfig Generating grub configuration file ... # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### /usr/sbin/grub-mkconfig: 265: /usr/sbin/grub-mkconfig: /etc/grub.d/00_header: Permission denied breakmygentoo:~ # The attached patch fixes this problem.
Thanks for catching this. Could you please submit this upstream? https://savannah.gnu.org/bugs/?group=grub
Already sent to grub-devel ml (see URL).
Created attachment 365738 [details, diff] 0001-grub-mkconfig-only-use-scripts-that-are-executable.patch Same patch but this time the git-formatted one I sent to upstream.
It's now in their repository (see URL)...
Thanks for the update. Feel free to commit it to the tree if you like; otherwise we will get it in beta2.
+*grub-2.02_beta1-r1 (23 Dec 2013) + + 23 Dec 2013; Lars Wendler <polynomial-c@gentoo.org> + +grub-2.02_beta1-r1.ebuild, + +files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch: + Let grub-mkconfig only use scripts that are executable (bug #494716). +