diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2013-12-23 20:56:21 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2013-12-23 20:56:21 +0000 |
commit | b69045730a3aa8ed47023117a70ca9a36440fc43 (patch) | |
tree | 8c4e966e5d465095277a99e23dcf72d1cb6b61e5 /sys-boot/grub/files | |
parent | Add 1.0.1, drop 0.9.4.1, update 9999; proxy-committed for Corentin Labbe (diff) | |
download | gentoo-2-b69045730a3aa8ed47023117a70ca9a36440fc43.tar.gz gentoo-2-b69045730a3aa8ed47023117a70ca9a36440fc43.tar.bz2 gentoo-2-b69045730a3aa8ed47023117a70ca9a36440fc43.zip |
Let grub-mkconfig only use scripts that are executable (bug #494716)
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'sys-boot/grub/files')
-rw-r--r-- | sys-boot/grub/files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys-boot/grub/files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch b/sys-boot/grub/files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch new file mode 100644 index 000000000000..1d293eb1d99f --- /dev/null +++ b/sys-boot/grub/files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch @@ -0,0 +1,35 @@ +From b8ff36598b7c77d85984b5cb6b5f95a0b679dd52 Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Thu, 19 Dec 2013 14:04:23 +0100 +Subject: [PATCH] grub-mkconfig: only use scripts that are executable + +commit ec824e0f2a399ce2ab3a2e3353d372a236595059 breaks grub-mkconfig if one of +the pre-defined config files are not executable. + +This patch fixes https://bugs.gentoo.org/494716 + +Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> +--- + util/grub-mkconfig.in | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in +index 0ca0db1..fe33092 100644 +--- a/util/grub-mkconfig.in ++++ b/util/grub-mkconfig.in +@@ -260,10 +260,12 @@ for i in "${grub_mkconfig_dir}"/* ; do + | "${grub_mkconfig_dir}"/30_os-prober \ + | "${grub_mkconfig_dir}"/40_custom \ + | "${grub_mkconfig_dir}"/41_custom) ++ if test -x "$i" ; then + echo + echo "### BEGIN $i ###" + "$i" + echo "### END $i ###" ++ fi + ;; + # emacsen backup files. FIXME: support other editors + *~) ;; +-- +1.8.5.2 + |