summaryrefslogtreecommitdiff
path: root/sys-boot/grub/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-26 08:49:24 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-26 08:49:24 +0100
commit881123d88d7cad0e244d662182c426bbb2ab559a (patch)
tree921f58dbab768ab5dc8092c3b3f7162dbcbfaebb /sys-boot/grub/files
parent17f883ddc63f83f378125edf6fb76625f0e3c634 (diff)
import grub stable from gentoo tree, drop our beta one
Diffstat (limited to 'sys-boot/grub/files')
-rw-r--r--sys-boot/grub/files/2.02_beta3-10_linux-UUID.patch27
-rw-r--r--sys-boot/grub/files/CVE-2015-8370.patch54
-rw-r--r--sys-boot/grub/files/grub-2.00-freetype-2.5.1.patch24
-rw-r--r--sys-boot/grub/files/grub-2.02_beta2-libzfs.patch19
-rw-r--r--sys-boot/grub/files/grub-2.02_beta2-lvm2-raid1.patch68
5 files changed, 0 insertions, 192 deletions
diff --git a/sys-boot/grub/files/2.02_beta3-10_linux-UUID.patch b/sys-boot/grub/files/2.02_beta3-10_linux-UUID.patch
deleted file mode 100644
index 1dcf3b5b..00000000
--- a/sys-boot/grub/files/2.02_beta3-10_linux-UUID.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From ea8de5d2ee58178381e5809e4d5fe79861e61b04 Mon Sep 17 00:00:00 2001
-From: Mike Gilbert <floppym@gentoo.org>
-Date: Sat, 5 Mar 2016 17:21:15 -0500
-Subject: [PATCH] [2.02] 10_linux: Fix grouping of tests for GRUB_DEVICE
-
-Commit 7290bb562 causes GRUB_DISABLE_LINUX_UUID to be ignored due to
-mixing of || and && operators. Add some parens to help with that.
----
- util/grub.d/10_linux.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
-index 5a78513..de9044c 100644
---- a/util/grub.d/10_linux.in
-+++ b/util/grub.d/10_linux.in
-@@ -47,7 +47,7 @@ esac
- # and mounting btrfs requires user space scanning, so force UUID in this case.
- if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
- || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
-- || test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm; then
-+ || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
- LINUX_ROOT_DEVICE=${GRUB_DEVICE}
- else
- LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
---
-2.7.2
-
diff --git a/sys-boot/grub/files/CVE-2015-8370.patch b/sys-boot/grub/files/CVE-2015-8370.patch
deleted file mode 100644
index 69e419ee..00000000
--- a/sys-boot/grub/files/CVE-2015-8370.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 451d80e52d851432e109771bb8febafca7a5f1f2 Mon Sep 17 00:00:00 2001
-From: Hector Marco-Gisbert <hecmargi@upv.es>
-Date: Wed, 16 Dec 2015 07:57:18 +0300
-Subject: [PATCH] Fix security issue when reading username and password
-
-This patch fixes two integer underflows at:
- * grub-core/lib/crypto.c
- * grub-core/normal/auth.c
-
-CVE-2015-8370
-
-Signed-off-by: Hector Marco-Gisbert <hecmargi@upv.es>
-Signed-off-by: Ismael Ripoll-Ripoll <iripoll@disca.upv.es>
-Also-By: Andrey Borzenkov <arvidjaar@gmail.com>
----
- grub-core/lib/crypto.c | 3 ++-
- grub-core/normal/auth.c | 7 +++++--
- 2 files changed, 7 insertions(+), 3 deletions(-)
-
-diff --git a/grub-core/lib/crypto.c b/grub-core/lib/crypto.c
-index 010e550..683a8aa 100644
---- a/grub-core/lib/crypto.c
-+++ b/grub-core/lib/crypto.c
-@@ -470,7 +470,8 @@ grub_password_get (char buf[], unsigned buf_size)
-
- if (key == '\b')
- {
-- cur_len--;
-+ if (cur_len)
-+ cur_len--;
- continue;
- }
-
-diff --git a/grub-core/normal/auth.c b/grub-core/normal/auth.c
-index c6bd96e..8615c48 100644
---- a/grub-core/normal/auth.c
-+++ b/grub-core/normal/auth.c
-@@ -174,8 +174,11 @@ grub_username_get (char buf[], unsigned buf_size)
-
- if (key == '\b')
- {
-- cur_len--;
-- grub_printf ("\b");
-+ if (cur_len)
-+ {
-+ cur_len--;
-+ grub_printf ("\b");
-+ }
- continue;
- }
-
---
-2.6.4
-
diff --git a/sys-boot/grub/files/grub-2.00-freetype-2.5.1.patch b/sys-boot/grub/files/grub-2.00-freetype-2.5.1.patch
deleted file mode 100644
index 286830cc..00000000
--- a/sys-boot/grub/files/grub-2.00-freetype-2.5.1.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-commit fd0df6d098b1e6a4f60275c48a3ec88d15ba1fbb
-Author: Colin Watson <cjwatson@ubuntu.com>
-Date: Fri Nov 29 12:19:36 2013 +0000
-
- Fix build with FreeType 2.5.1
-
- * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
- <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
- * util/grub-gen-widthspec.c: Likewise.
- * util/grub-mkfont.c: Likewise.
-
-diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c
-index 0d8eb78..242dd01 100644
---- a/util/grub-mkfont.c
-+++ b/util/grub-mkfont.c
-@@ -43,7 +43,7 @@
- #include FT_FREETYPE_H
- #include FT_TRUETYPE_TAGS_H
- #include FT_TRUETYPE_TABLES_H
--#include <freetype/ftsynth.h>
-+#include FT_SYNTHESIS_H
-
- #undef __FTERRORS_H__
- #define FT_ERROR_START_LIST const char *ft_errmsgs[] = {
diff --git a/sys-boot/grub/files/grub-2.02_beta2-libzfs.patch b/sys-boot/grub/files/grub-2.02_beta2-libzfs.patch
deleted file mode 100644
index d76a903c..00000000
--- a/sys-boot/grub/files/grub-2.02_beta2-libzfs.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-commit 6ba983559dcffa0fa69c7fc861b5a16b4877a92c
-Author: Mike Gilbert <floppym@gentoo.org>
-Date: Sat Jan 18 19:41:15 2014 +0100
-
- * Makefile.util.def: Link grub-ofpathname with zfs libs.
-
-diff --git a/Makefile.util.def b/Makefile.util.def
-index 83df212..a286a89 100644
---- a/Makefile.util.def
-+++ b/Makefile.util.def
-@@ -384,7 +384,7 @@ program = {
- ldadd = libgrubgcry.a;
- ldadd = libgrubkern.a;
- ldadd = grub-core/gnulib/libgnu.a;
-- ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
-+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
- };
-
- program = {
diff --git a/sys-boot/grub/files/grub-2.02_beta2-lvm2-raid1.patch b/sys-boot/grub/files/grub-2.02_beta2-lvm2-raid1.patch
deleted file mode 100644
index 76c72a62..00000000
--- a/sys-boot/grub/files/grub-2.02_beta2-lvm2-raid1.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From: Andrei Borzenkov <arvidjaar@gmail.com>
-Date: Thu, 19 Mar 2015 18:30:27 +0000 (+0300)
-Subject: core: add LVM RAID1 support
-X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=grub.git;a=commitdiff_plain;h=527eeeeee6c8d3d8e3bb1fac408d47bb1dcbec95;hp=7c9309e50a124817e67de38b30c6291acecad560
-
-core: add LVM RAID1 support
-
-Closes 44534.
----
-
-diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c
-index 1e7f197..9b97004 100644
---- a/grub-core/disk/lvm.c
-+++ b/grub-core/disk/lvm.c
-@@ -577,13 +577,17 @@ grub_lvm_detect (grub_disk_t disk,
- if (is_pvmove)
- seg->node_count = 1;
- }
-- else if (grub_memcmp (p, "raid", sizeof ("raid") - 1)
-- == 0 && (p[sizeof ("raid") - 1] >= '4'
-- && p[sizeof ("raid") - 1] <= '6')
-+ else if (grub_memcmp (p, "raid", sizeof ("raid") - 1) == 0
-+ && ((p[sizeof ("raid") - 1] >= '4'
-+ && p[sizeof ("raid") - 1] <= '6')
-+ || p[sizeof ("raid") - 1] == '1')
- && p[sizeof ("raidX") - 1] == '"')
- {
- switch (p[sizeof ("raid") - 1])
- {
-+ case '1':
-+ seg->type = GRUB_DISKFILTER_MIRROR;
-+ break;
- case '4':
- seg->type = GRUB_DISKFILTER_RAID4;
- seg->layout = GRUB_RAID_LAYOUT_LEFT_ASYMMETRIC;
-@@ -608,16 +612,18 @@ grub_lvm_detect (grub_disk_t disk,
- goto lvs_segment_fail;
- }
-
-- seg->stripe_size = grub_lvm_getvalue (&p, "stripe_size = ");
-- if (p == NULL)
-+ if (seg->type != GRUB_DISKFILTER_MIRROR)
- {
-+ seg->stripe_size = grub_lvm_getvalue (&p, "stripe_size = ");
-+ if (p == NULL)
-+ {
- #ifdef GRUB_UTIL
-- grub_util_info ("unknown stripe_size\n");
-+ grub_util_info ("unknown stripe_size\n");
- #endif
-- goto lvs_segment_fail;
-+ goto lvs_segment_fail;
-+ }
- }
-
--
- seg->nodes = grub_zalloc (sizeof (seg->nodes[0])
- * seg->node_count);
-
-@@ -625,7 +631,7 @@ grub_lvm_detect (grub_disk_t disk,
- if (p == NULL)
- {
- #ifdef GRUB_UTIL
-- grub_util_info ("unknown mirrors\n");
-+ grub_util_info ("unknown raids\n");
- #endif
- goto lvs_segment_fail2;
- }