summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2013-12-23 20:56:22 +0000
committerLars Wendler <polynomial-c@gentoo.org>2013-12-23 20:56:22 +0000
commit25c0e10276a21ca5d201d3eee3b931cae9911a84 (patch)
tree0dc55029ac617159411fbb65c6d0704fb26aaced /sys-boot/grub/files
parentAdd 1.0.1, drop 0.9.4.1, update 9999; proxy-committed for Corentin Labbe (diff)
downloadhistorical-25c0e10276a21ca5d201d3eee3b931cae9911a84.tar.gz
historical-25c0e10276a21ca5d201d3eee3b931cae9911a84.tar.bz2
historical-25c0e10276a21ca5d201d3eee3b931cae9911a84.zip
Let grub-mkconfig only use scripts that are executable (bug #494716)
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-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.patch35
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
+