Update to newest upstream.

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2014-06-24 11:18:06 -04:00
parent 3f2879cb30
commit 011fe811ba
128 changed files with 1911 additions and 436 deletions

View File

@ -1,7 +1,7 @@
From a6e7719bbe05993613a8de69dba14fa092144925 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Wed, 25 Dec 2013 22:36:28 +0400
Subject: [PATCH 001/103] fix EFI detection on Windows
Subject: [PATCH 001/125] fix EFI detection on Windows
We are on legacy BIOS if GetFirmwareEnvironmentVariable fails (returns
zero) *and* extended error information is ERROR_INVALID_FUNCTION.

View File

@ -1,7 +1,7 @@
From 5bda44d7f98c36f87144869ec58b518f80a69b56 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 25 Dec 2013 23:31:42 +0100
Subject: [PATCH 002/103] * grub-core/kern/arm/cache_armv6.S: Remove
Subject: [PATCH 002/125] * grub-core/kern/arm/cache_armv6.S: Remove
.arch directive.
As these functions are used on pre-ARMv6 CPUs as well we don't want

View File

@ -1,11 +1,9 @@
From b3a04ee7745f9db87475ed926569ca1b3ba63994 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 6 May 2014 10:47:21 -0400
Subject: [PATCH 003/103] * INSTALL (Cross-compiling the GRUB): Fix some
From 8ebe593c564edc8ae62086df8a1448e898ef259b Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Fri, 27 Dec 2013 03:03:32 +0000
Subject: [PATCH 003/125] * INSTALL (Cross-compiling the GRUB): Fix some
spelling mistakes. * docs/grub.texi (Getting the source code): Likewise.
Conflicts:
ChangeLog
---
ChangeLog | 5 +++++
INSTALL | 10 +++++-----

View File

@ -1,7 +1,7 @@
From 4b4eebb6b2cb81455337137d75467db0e00c7d99 Mon Sep 17 00:00:00 2001
From c0e2febef52139e0e580e52f553bf3aa521e390c Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Fri, 27 Dec 2013 03:05:38 +0000
Subject: [PATCH 004/103] * NEWS: First draft of 2.02 entry.
Subject: [PATCH 004/125] * NEWS: First draft of 2.02 entry.
---
ChangeLog | 4 +++

View File

@ -0,0 +1,43 @@
From 9ee79da5bf54babe11178ced48470b5f09d3dda3 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 27 Dec 2013 11:20:37 +0100
Subject: [PATCH 005/125] Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Conflicts:
ChangeLog
---
ChangeLog | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 82dc61d..da3c2df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
+
+ As these functions are used on pre-ARMv6 CPUs as well we don't want
+ to make assembler assume that architecture is higher than default one.
+
2013-12-27 Colin Watson <cjwatson@ubuntu.com>
* NEWS: First draft of 2.02 entry.
@@ -7,13 +14,6 @@
* INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
* docs/grub.texi (Getting the source code): Likewise.
-2013-12-25 Vladimir Serbinenko <phcoder@gmail.com>
-
- * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
-
- As these functions are used on pre-ARMv6 CPUs as well we don't want
- to make assembler assume that architecture is higher than default one.
-
2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/osdep/windows/platform.c (get_platform): Fix EFI
--
1.9.0

View File

@ -1,7 +1,7 @@
From 41a4b6d4b2fcf14e6f8dcc03dda3eb807a64c428 Mon Sep 17 00:00:00 2001
From 94763697f5f33614b7bd6da91707a27b6872b750 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Sat, 28 Dec 2013 02:20:27 +0000
Subject: [PATCH 005/103] * NEWS: The cmosclean command in fact dates back to
Subject: [PATCH 006/125] * NEWS: The cmosclean command in fact dates back to
1.99. Remove mention of it from 2.02.
---
@ -10,7 +10,7 @@ Subject: [PATCH 005/103] * NEWS: The cmosclean command in fact dates back to
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 82dc61d..a606ca5 100644
index da3c2df..c33856e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
@ -19,9 +19,9 @@ index 82dc61d..a606ca5 100644
+ * NEWS: The cmosclean command in fact dates back to 1.99. Remove
+ mention of it from 2.02.
+
2013-12-27 Colin Watson <cjwatson@ubuntu.com>
2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
* NEWS: First draft of 2.02 entry.
* grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
diff --git a/NEWS b/NEWS
index 577d9fd..b74c05f 100644
--- a/NEWS

View File

@ -1,7 +1,7 @@
From bdabacb90e48becc55a4f84e0166c573663879d4 Mon Sep 17 00:00:00 2001
From 904bd6b3cb12977def4f940e90aca3fe557c3bb5 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 28 Dec 2013 09:01:20 +0400
Subject: [PATCH 006/103] remove unused error.h from kern/emu/misc.c
Subject: [PATCH 007/125] remove unused error.h from kern/emu/misc.c
Fixes compilation on mingw32, where include is apparently missing.
---
@ -10,7 +10,7 @@ Fixes compilation on mingw32, where include is apparently missing.
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a606ca5..17c1c31 100644
index c33856e..0401f61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From 52bc775fbd3b6e4bb68fe3f5644a23a475ff0b26 Mon Sep 17 00:00:00 2001
From 23cd074c57ee6f35776fd5122a050bcef6c9eef5 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 28 Dec 2013 17:25:14 +0100
Subject: [PATCH 007/103] Don't abort() on unavailable coreboot tables
Subject: [PATCH 008/125] Don't abort() on unavailable coreboot tables
if not running on coreboot.
---
@ -11,7 +11,7 @@ Subject: [PATCH 007/103] Don't abort() on unavailable coreboot tables
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 17c1c31..140b2d8 100644
index 0401f61..ed6d77c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From e556fb6be8a3b3155723c26d02437a0a5bf26183 Mon Sep 17 00:00:00 2001
From 3eff91e86e4df2cf8a5e1b26f98e96bf4731f526 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Mon, 30 Dec 2013 06:49:15 +0100
Subject: [PATCH 008/103] * NEWS: Add few missing entries. Correct
Subject: [PATCH 009/125] * NEWS: Add few missing entries. Correct
existing ones.
---
@ -10,7 +10,7 @@ Subject: [PATCH 008/103] * NEWS: Add few missing entries. Correct
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 140b2d8..447dece 100644
index ed6d77c..db84300 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From e5b01b454769cec291160ffdeef706d04bedb342 Mon Sep 17 00:00:00 2001
From 9e9507d2e1eaed4fc2ebe2959c5405687485f613 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Mon, 30 Dec 2013 12:56:19 +0000
Subject: [PATCH 009/103] strip .eh_frame section from arm64-efi kernel
Subject: [PATCH 010/125] strip .eh_frame section from arm64-efi kernel
Fixes grub-mkimage error "relocation 0x105 is not implemented yet."
---
@ -10,7 +10,7 @@ Fixes grub-mkimage error "relocation 0x105 is not implemented yet."
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 447dece..d2e5193 100644
index db84300..8c1ecec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From 907365b13dc4a1fb5a17dea673ad65130ebbcf7a Mon Sep 17 00:00:00 2001
From 7e782c6996ee433c94fb378cbc8db0fa0f663c84 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 7 Jan 2014 10:38:54 +0400
Subject: [PATCH 010/103] use {grub,boot}aa64.efi for boot images on AArch64
Subject: [PATCH 011/125] use {grub,boot}aa64.efi for boot images on AArch64
According to UEFI 2.4 specification, default boot file name on AArch64
is BOOTAA64.EFI (3.4.1.1 Removable Media Boot Behavior). Also set default

View File

@ -1,7 +1,7 @@
From 9ce80256f3246f13d083374980018e937737f101 Mon Sep 17 00:00:00 2001
From afda7f47601f36a98074d8d21ffb640256f02267 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 7 Jan 2014 18:43:02 +0400
Subject: [PATCH 011/103] fix 32 bit compilation on MinGW-w64
Subject: [PATCH 012/125] fix 32 bit compilation on MinGW-w64
Use _FILE_OFFSET_BITS macro to distinguish between native MinGW and
32 bit under MinGW-64. The latter does not require fseeko/ftello
@ -12,7 +12,7 @@ redefinition which it already does in case of _FILE_OFFSET_BITS=64.
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index d2e5193..761e8c6 100644
index 8c1ecec..e87f0a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From abb042d2a8c3787de2509eb6f7c219f9c921ab28 Mon Sep 17 00:00:00 2001
From 9981c4e3f366b4795655368a78baa058b18711c6 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 7 Jan 2014 20:34:25 +0400
Subject: [PATCH 012/103] Change grub-mkrescue to use bootaa64.efi too
Subject: [PATCH 013/125] Change grub-mkrescue to use bootaa64.efi too
Also add ChangeLog entry for previous change.
---
@ -10,7 +10,7 @@ Also add ChangeLog entry for previous change.
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 761e8c6..735748f 100644
index e87f0a7..0b9fa05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@

View File

@ -1,7 +1,7 @@
From 60431c470d8ae9001d34e76f7b80d2b55007fd64 Mon Sep 17 00:00:00 2001
From f493e0d352e1e8ff8cbafee69878d00487a04808 Mon Sep 17 00:00:00 2001
From: Leif Lindholm <leif.lindholm@linaro.org>
Date: Tue, 7 Jan 2014 17:52:50 +0000
Subject: [PATCH 013/103] arm64: set correct length of device path end entry
Subject: [PATCH 014/125] arm64: set correct length of device path end entry
The length of the Device Path End entry in the grub_linux_boot()
function was incorrectly set to 0. This triggers an assert failure
@ -14,7 +14,7 @@ Set it to sizeof (grub_efi_device_path_t).
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 735748f..a1ecbe2 100644
index 0b9fa05..4ec5517 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From ad0412ef8b5dcc14499d4ba318493db298ac7a79 Mon Sep 17 00:00:00 2001
From 1c0db34a9597ecccb3ad4899892fb6ff6e22304d Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Wed, 8 Jan 2014 11:05:20 +0000
Subject: [PATCH 014/103] * Makefile.util.def (grub-macbless): Change
Subject: [PATCH 015/125] * Makefile.util.def (grub-macbless): Change
mansection to 8.
---
@ -10,7 +10,7 @@ Subject: [PATCH 014/103] * Makefile.util.def (grub-macbless): Change
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a1ecbe2..6a382e4 100644
index 4ec5517..b445f12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From ae32118428c545d74dcf2d708660b490d4740ca9 Mon Sep 17 00:00:00 2001
From 3aea6cc46177a90056ba60381e6387377fe40c99 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sun, 12 Jan 2014 15:29:21 +0400
Subject: [PATCH 015/103] add part_apple to EFI rescue image to fix missing
Subject: [PATCH 016/125] add part_apple to EFI rescue image to fix missing
prefix
On Mac rescue image is booted from HFS+ partition, so bootpath looks like

View File

@ -1,7 +1,7 @@
From 76455c52e6315685813dd1f880977d4781f3fe73 Mon Sep 17 00:00:00 2001
From a433d177585c8355c6ede67469a521d05cf1e9d7 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Fri, 17 Jan 2014 02:30:52 +0000
Subject: [PATCH 016/103] freebsd/hostdisk.c is only ever compiled on FreeBSD
Subject: [PATCH 017/125] freebsd/hostdisk.c is only ever compiled on FreeBSD
* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
redundant preprocessor conditional.
@ -11,7 +11,7 @@ redundant preprocessor conditional.
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6a382e4..a80f172 100644
index b445f12..6613b4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From 942d03cf562e626418a0553a6e22e5c9cb7e7de4 Mon Sep 17 00:00:00 2001
From 4ec08b960f6de1190dea9fe7e6ab3b4b249840e5 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Fri, 17 Jan 2014 15:24:50 +0000
Subject: [PATCH 017/103] Prefer more portable test(1) constructs
Subject: [PATCH 018/125] Prefer more portable test(1) constructs
* util/grub.d/00_header.in (make_timeout): Use && rather than test
-a.
@ -19,7 +19,7 @@ rather than test -o.
5 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a80f172..30084cf 100644
index 6613b4e..c8e95a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,14 @@

View File

@ -1,7 +1,7 @@
From ed742dc11fee69471c07101c814fc27a36b83768 Mon Sep 17 00:00:00 2001
From e18da008f74a3c5f27a191e4f7be80c02a49f2fe Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 16:31:10 +0100
Subject: [PATCH 018/103] * NEWS: Add few missing entries.
Subject: [PATCH 019/125] * NEWS: Add few missing entries.
---
ChangeLog | 4 ++++
@ -9,7 +9,7 @@ Subject: [PATCH 018/103] * NEWS: Add few missing entries.
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 30084cf..5eea8a3 100644
index c8e95a6..6a19f85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From cadbf009147f14d3e7f33bf0f29cefb7a26aeb26 Mon Sep 17 00:00:00 2001
From 29c96f00677e1dd2a9df4de645a7f5fab7b736a1 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 16:41:47 +0100
Subject: [PATCH 019/103] * grub-core/kern/efi/efi.c: Ensure that the
Subject: [PATCH 020/125] * grub-core/kern/efi/efi.c: Ensure that the
result starts with / and has no //.
---
@ -10,7 +10,7 @@ Subject: [PATCH 019/103] * grub-core/kern/efi/efi.c: Ensure that the
2 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5eea8a3..b42fd65 100644
index 6a19f85..b04a4ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From a97ddeedaa2d65158ea9489cb73ff187fd8ff306 Mon Sep 17 00:00:00 2001
From fa9e3a9aa30988c2339e9d05c81b5d91534f4049 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 16:43:29 +0100
Subject: [PATCH 020/103] * util/grub-mount.c: Extend GCC warning
Subject: [PATCH 021/125] * util/grub-mount.c: Extend GCC warning
workaround to grub-mount.
---
@ -10,7 +10,7 @@ Subject: [PATCH 020/103] * util/grub-mount.c: Extend GCC warning
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b42fd65..7241046 100644
index b04a4ef..8534158 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@

View File

@ -1,7 +1,7 @@
From 270a7a0d557ecdedc7aaba8dfba01d45635455e9 Mon Sep 17 00:00:00 2001
From 3bea802b45b9c98f70753370522fa6e47ba8966b Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 18 Jan 2014 19:50:54 +0400
Subject: [PATCH 021/103] reintroduce BUILD_LDFLAGS for the cross-compile case
Subject: [PATCH 022/125] reintroduce BUILD_LDFLAGS for the cross-compile case
This allows providing separate LDFLAGS for build and host environments, which
are not necessary the same for cross-compile case. In particular, it allows
@ -20,7 +20,7 @@ for build and host now.
5 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7241046..86053ae 100644
index 8534158..9c3ef2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@

View File

@ -1,7 +1,7 @@
From e5f0bfe517d7b07bcc940c16bbfe89daed17163f Mon Sep 17 00:00:00 2001
From ac660e42875162e599f50c085cb646c633cf376d Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 16:57:35 +0100
Subject: [PATCH 022/103] * grub-core/term/terminfo.c: Recognize keys
Subject: [PATCH 023/125] * grub-core/term/terminfo.c: Recognize keys
F1-F12.
---
@ -10,7 +10,7 @@ Subject: [PATCH 022/103] * grub-core/term/terminfo.c: Recognize keys
2 files changed, 54 insertions(+), 36 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 86053ae..1d530ce 100644
index 9c3ef2e..bdfbf44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,14 +1,14 @@
From d55d279aaf9e05f5adee41f70eeca2533fa2bc03 Mon Sep 17 00:00:00 2001
From 6e5cf6b00fa82e5a02135ea5e21230ee44c72087 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 18 Jan 2014 20:01:16 +0400
Subject: [PATCH 023/103] Fix ChangeLog date
Subject: [PATCH 024/125] Fix ChangeLog date
---
ChangeLog | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 1d530ce..da20112 100644
index bdfbf44..fcbf220 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,7 @@

View File

@ -1,7 +1,7 @@
From 458248c36f2ec209cfdd7564c8dedf0e443ced5e Mon Sep 17 00:00:00 2001
From bb3e1a1e8448f3ea9489b5ebfcec799196bc862f Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 18 Jan 2014 20:04:11 +0400
Subject: [PATCH 024/103] Use _W64 to detect MinGW W64-32 instead of
Subject: [PATCH 025/125] Use _W64 to detect MinGW W64-32 instead of
_FILE_OFFSET_BITS
In 94cee4a4c201bb506377b2c26e072eee8cb19d6f I overlooked that config.h
@ -15,7 +15,7 @@ http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00723.html
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index da20112..21fc87f 100644
index fcbf220..5aac7c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From 75db309b99ac486e9c6b5508722796c034cb36d6 Mon Sep 17 00:00:00 2001
From 5ac7afd762d11b4c91d5756222c3abf5862203de Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 18 Jan 2014 20:41:24 +0400
Subject: [PATCH 025/103] add BUILD_EXEEXT support to fix make clean on Windows
Subject: [PATCH 026/125] add BUILD_EXEEXT support to fix make clean on Windows
Add $(BUILD_EXEEXT) to ensure files are removed. Also add CLEANFILES where
appropriate.
@ -14,7 +14,7 @@ appropriate.
5 files changed, 40 insertions(+), 20 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 21fc87f..8ae23e5 100644
index 5aac7c1..dad2da2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@

View File

@ -1,7 +1,7 @@
From 925662e61e6becd12efb438d386b5aee45be4ecf Mon Sep 17 00:00:00 2001
From 09194ac15b3c348cbf147e8ea27b982b57a7a778 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 18 Jan 2014 21:22:57 +0400
Subject: [PATCH 026/103] fix include loop on MinGW due to libintl.h pulling
Subject: [PATCH 027/125] fix include loop on MinGW due to libintl.h pulling
stdio.h
In file included from ./include/grub/dl.h:23:0,
@ -45,7 +45,7 @@ into separate file grub/compiler.h and include it instead.
create mode 100644 include/grub/compiler.h
diff --git a/ChangeLog b/ChangeLog
index 8ae23e5..50ac180 100644
index dad2da2..dad469b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@

View File

@ -1,7 +1,7 @@
From 82a8398294fbb8ef767860e27d648df3e44f9b87 Mon Sep 17 00:00:00 2001
From 9cbb9fc3d79e449affe7ed5e104aa828b72ad2cd Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 19:26:40 +0100
Subject: [PATCH 027/103] * grub-core/commands/macbless.c: Rename FILE
Subject: [PATCH 028/125] * grub-core/commands/macbless.c: Rename FILE
and DIR to avoid conflicts.
Reported by: Andrey Borzenkov.
@ -11,7 +11,7 @@ Subject: [PATCH 027/103] * grub-core/commands/macbless.c: Rename FILE
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 50ac180..75ecd5f 100644
index dad469b..9d1a3f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@

View File

@ -1,7 +1,7 @@
From 5fd5c957af6bce9d59324a54e94c879285bd2897 Mon Sep 17 00:00:00 2001
From 6c3fa2da4fd22c3ebda0c6cf69f97d578c04e704 Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Sat, 18 Jan 2014 19:41:15 +0100
Subject: [PATCH 028/103] * Makefile.util.def: Link grub-ofpathname with
Subject: [PATCH 029/125] * Makefile.util.def: Link grub-ofpathname with
zfs libs.
---
@ -10,7 +10,7 @@ Subject: [PATCH 028/103] * Makefile.util.def: Link grub-ofpathname with
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 75ecd5f..40ffd93 100644
index 9d1a3f0..edceb66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From e7bf7f69fa55a08430efcd81472daf253fd1b7f3 Mon Sep 17 00:00:00 2001
From 3f6bd432acbf2244e6f4b83dd3a259392b10afb6 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 19:43:19 +0100
Subject: [PATCH 029/103] * Makefile.am (default_payload.elf): Add
Subject: [PATCH 030/125] * Makefile.am (default_payload.elf): Add
modules multiboot cbmemc linux16 gzio echo help.
---
@ -10,7 +10,7 @@ Subject: [PATCH 029/103] * Makefile.am (default_payload.elf): Add
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 40ffd93..23fa27e 100644
index edceb66..cff9386 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@

View File

@ -1,7 +1,7 @@
From bad3b8b7be801e2213955727277f55d88325e714 Mon Sep 17 00:00:00 2001
From d0cf0d7dcd4813a168d2bd94ec77ee0ae8ff860e Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 18 Jan 2014 22:48:04 +0400
Subject: [PATCH 030/103] fix removal of {cpu,machine} links on mingw/msys
Subject: [PATCH 031/125] fix removal of {cpu,machine} links on mingw/msys
At least on Windows 2003 using "ln -s dir1 dir2" in msys shell succeeds,
but results in what looks like hard link. Subsequent "rm -f dir2" (e.g.
@ -15,7 +15,7 @@ Make it more clear in message that we are checking "ln -s".
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 23fa27e..58ae4f5 100644
index cff9386..c3bfa9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From 1e0b6198696c7ba23945468d81dff7a8ba28c361 Mon Sep 17 00:00:00 2001
From 221f6e1ac22f66881276d4cb012d588ecfb17e47 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 19:54:09 +0100
Subject: [PATCH 031/103] * grub-core/normal/main.c (read_config_file):
Subject: [PATCH 032/125] * grub-core/normal/main.c (read_config_file):
Buffer config file. Reduces boot time.
---
@ -10,7 +10,7 @@ Subject: [PATCH 031/103] * grub-core/normal/main.c (read_config_file):
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 58ae4f5..0609420 100644
index c3bfa9f..c84f7e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From caa0ecbe148f596f021967fc4ef02cb4f6a02852 Mon Sep 17 00:00:00 2001
From d353b169aa6b2a9cd03d0c2987da7da059aa6f99 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sat, 18 Jan 2014 20:02:51 +0100
Subject: [PATCH 032/103] * util/grub-install.c: Fix a typo.
Subject: [PATCH 033/125] * util/grub-install.c: Fix a typo.
---
ChangeLog | 4 ++++
@ -9,7 +9,7 @@ Subject: [PATCH 032/103] * util/grub-install.c: Fix a typo.
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 0609420..dc6df34 100644
index c84f7e7..9360345 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@

View File

@ -1,7 +1,7 @@
From 656469fae69a5b7c6ddaaef717433b101c60e8c3 Mon Sep 17 00:00:00 2001
From 85cc4b1abfed85fd8504da4acc391d5936de2812 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 18 Jan 2014 23:15:40 +0400
Subject: [PATCH 033/103] use MODULE_FILES for genemuinit* instead of MOD_FILES
Subject: [PATCH 034/125] use MODULE_FILES for genemuinit* instead of MOD_FILES
MinGW native nm does not support ELF binaries.
---
@ -12,7 +12,7 @@ MinGW native nm does not support ELF binaries.
4 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dc6df34..9073b1e 100644
index 9360345..4688ff4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@

View File

@ -1,7 +1,7 @@
From aa4a525fe853594ed566b2bafa7b8bc101c78a88 Mon Sep 17 00:00:00 2001
From 97fca4331e317b0491912c3cf3d02a9fac96c419 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Fri, 17 Jan 2014 02:28:46 +0000
Subject: [PATCH 034/103] Ignore EPERM when modifying kern.geom.debugflags
Subject: [PATCH 035/125] Ignore EPERM when modifying kern.geom.debugflags
Many tests fail when run as a non-root user on FreeBSD. The failures
all amount to an inability to open files using grub_util_fd_open,
@ -16,7 +16,7 @@ perfectly reasonable operations.
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9073b1e..a7aee43 100644
index 4688ff4..10abfe2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@

View File

@ -1,7 +1,7 @@
From fe1f47e9190113ad7318f46e0e66a4497ebb6135 Mon Sep 17 00:00:00 2001
From 547d1e84df5d57c7600ead4556d43d5dbbe33c4b Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Tue, 21 Jan 2014 10:49:39 -0200
Subject: [PATCH 035/103] change stop condition to avoid infinite loops
Subject: [PATCH 036/125] change stop condition to avoid infinite loops
In net/net.c there is a while (1) that only exits if there is a stop
condition and more then 10 packages or if there is no package received.
@ -15,7 +15,7 @@ this never happens.
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a7aee43..0df6854 100644
index 10abfe2..f69d8c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@

View File

@ -1,7 +1,7 @@
From ec46305a8533a9880dbfd157c2ba8cc1354ab504 Mon Sep 17 00:00:00 2001
From d3652ff33623d842fc4422ffd98e4303795e9519 Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Tue, 21 Jan 2014 11:03:51 -0200
Subject: [PATCH 036/103] increase network try interval gradually
Subject: [PATCH 037/125] increase network try interval gradually
* grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
interval gradually.
@ -19,7 +19,7 @@ interval gradually.
6 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0df6854..b35563e 100644
index f69d8c7..f5618a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@

View File

@ -1,7 +1,7 @@
From e9cbf597953d597dd15c0dc0be77a9583fa733f7 Mon Sep 17 00:00:00 2001
From 90d83cda679fef485f7bb1a318bd682c4eb86cb4 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 21 Jan 2014 19:29:33 +0400
Subject: [PATCH 037/103] look for DejaVu also in /usr/share/fonts/truetype
Subject: [PATCH 038/125] look for DejaVu also in /usr/share/fonts/truetype
It is installed in this path on openSUSE.
---
@ -10,7 +10,7 @@ It is installed in this path on openSUSE.
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b35563e..b2e6d39 100644
index f5618a6..9f5d81d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From 8dd8e1c0e27070d2f172ddaf4e7528496dfd8b45 Mon Sep 17 00:00:00 2001
From 3e02e2fbd2089645ac2c482dad59318394b62252 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 21 Jan 2014 19:41:11 +0400
Subject: [PATCH 038/103] Show detected path to DejaVuSans in configure summary
Subject: [PATCH 039/125] Show detected path to DejaVuSans in configure summary
---
ChangeLog | 1 +
@ -9,7 +9,7 @@ Subject: [PATCH 038/103] Show detected path to DejaVuSans in configure summary
2 files changed, 2 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index b2e6d39..30b8e8a 100644
index 9f5d81d..3ba57ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@

View File

@ -1,7 +1,7 @@
From b56a7569613e59c14d09c77b428884a9acb19e7d Mon Sep 17 00:00:00 2001
From 6e9483ee94033f4bb7b9a17bd032c4af4479abc0 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 21 Jan 2014 20:54:09 +0400
Subject: [PATCH 039/103] add GRUB_WINDOWS_EXTRA_DIST to allow shipping runtime
Subject: [PATCH 040/125] add GRUB_WINDOWS_EXTRA_DIST to allow shipping runtime
files
Not all toolkits provide static libraries. This patch enables creation of self
@ -24,7 +24,7 @@ targets.
2 files changed, 9 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 30b8e8a..f2c75dc 100644
index 3ba57ae..1ede370 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From 4a640fa8d9e9f463dfc9a1c1e9adfc758c58ed16 Mon Sep 17 00:00:00 2001
From 100e7015f7dcf2cee0c4ddbbd7498a67bac695d0 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Thu, 23 Jan 2014 12:05:36 +0000
Subject: [PATCH 040/103] * util/grub-install.c (write_to_disk): Add an info
Subject: [PATCH 041/125] * util/grub-install.c (write_to_disk): Add an info
message.
---
@ -10,7 +10,7 @@ Subject: [PATCH 040/103] * util/grub-install.c (write_to_disk): Add an info
2 files changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index f2c75dc..21417f8 100644
index 1ede370..eee8e78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From 9779a803f3368df23a4a90f2475d6d78672e83c0 Mon Sep 17 00:00:00 2001
From d25ddbcafa537525f606938df0e500c50a5e93e1 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 24 Jan 2014 18:09:25 +0100
Subject: [PATCH 041/103] * util/grub-install.c: List available targets.
Subject: [PATCH 042/125] * util/grub-install.c: List available targets.
---
ChangeLog | 4 ++++
@ -11,7 +11,7 @@ Subject: [PATCH 041/103] * util/grub-install.c: List available targets.
4 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 21417f8..f3bb077 100644
index eee8e78..20e8baa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From 3886fbac17202ede59c051ef90046b01d199ecc9 Mon Sep 17 00:00:00 2001
From 2cd73ec6b2efeaff2bdcd40cce0cd3145d9e07d0 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 24 Jan 2014 18:20:27 +0100
Subject: [PATCH 042/103] Fix several translatable strings.
Subject: [PATCH 043/125] Fix several translatable strings.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
@ -15,7 +15,7 @@ Content-Transfer-Encoding: 8bit
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f3bb077..bc1a08a 100644
index 20e8baa..e149d8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@

View File

@ -1,7 +1,7 @@
From 7a7665be5063a4f2aa97fb7e8f8585d38f7821ac Mon Sep 17 00:00:00 2001
From 2b2a550c14e70d17af4140e64d08022ed170f0c8 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 25 Jan 2014 19:54:51 +0400
Subject: [PATCH 043/103] do not set default prefix in grub-mkimage
Subject: [PATCH 044/125] do not set default prefix in grub-mkimage
Default prefix is likely wrong on Unix and completely wrong on Windows.
Let caller set it explicitly to avoid any ambiguity.
@ -11,7 +11,7 @@ Let caller set it explicitly to avoid any ambiguity.
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bc1a08a..3b39980 100644
index e149d8e..b405b7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From 67c5e4180039d4b98039620f1d109a9323e4d2fe Mon Sep 17 00:00:00 2001
From 90efd351fa4f81df97473e1bb8c8234a801f8ebe Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Sat, 25 Jan 2014 21:49:41 +0400
Subject: [PATCH 044/103] fix Mingw W64-32 cross compile failure due to printf
Subject: [PATCH 045/125] fix Mingw W64-32 cross compile failure due to printf
redefinition in libintl.h
In file included from util/misc.c:36:0:
@ -25,7 +25,7 @@ v3: modify g10lib.h during import
5 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3b39980..50d07c8 100644
index b405b7e..c93f11f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@

View File

@ -1,7 +1,7 @@
From 7cb3659aebdd85ceb3b582b5c342b5c2ba84e904 Mon Sep 17 00:00:00 2001
From c18e39b667adb11624f3f4162c1342b76712d655 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sun, 26 Jan 2014 02:36:05 +0100
Subject: [PATCH 045/103] * grub-core/term/serial.c
Subject: [PATCH 046/125] * grub-core/term/serial.c
(grub_serial_register): Fix invalid free. Ensure that pointers are
inited to NULL and that pointers are not accessed after free.
@ -11,7 +11,7 @@ Subject: [PATCH 045/103] * grub-core/term/serial.c
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 50d07c8..6727e6e 100644
index c93f11f..67b4d5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From bb87dccc37bf223ecf207660511efc93bd021a40 Mon Sep 17 00:00:00 2001
From c889057e089d69bd187c8ba134c9669247744628 Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Sun, 26 Jan 2014 02:56:04 +0100
Subject: [PATCH 046/103] grub-install: support for partitioned partx
Subject: [PATCH 047/125] grub-install: support for partitioned partx
loop devices.
* grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
@ -12,7 +12,7 @@ Subject: [PATCH 046/103] grub-install: support for partitioned partx
2 files changed, 20 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 6727e6e..b80896b 100644
index 67b4d5c..bbec1e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@

View File

@ -1,7 +1,7 @@
From 2919748f67c5e4cf7ec9ce67604c5a82fb09036f Mon Sep 17 00:00:00 2001
From 379cbd6233fe227544ff3073b60b295fe841b654 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sun, 26 Jan 2014 03:31:10 +0100
Subject: [PATCH 047/103] * grub-core/term/at_keyboard.c: Tolerate
Subject: [PATCH 048/125] * grub-core/term/at_keyboard.c: Tolerate
missing keyboard.
---
@ -10,7 +10,7 @@ Subject: [PATCH 047/103] * grub-core/term/at_keyboard.c: Tolerate
2 files changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index b80896b..44f018b 100644
index bbec1e7..d37d4a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From 23537251e8447ea8a43b0ddc7c4e15fde69adfb2 Mon Sep 17 00:00:00 2001
From 58ca3abc65a64d950d6da8b473e91f16d410f1ac Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Wed, 29 Jan 2014 13:26:00 -0200
Subject: [PATCH 048/103] .gitignore: add missing files and .exe variants.
Subject: [PATCH 049/125] .gitignore: add missing files and .exe variants.
---
.gitignore | 7 +++++++
@ -9,7 +9,7 @@ Subject: [PATCH 048/103] .gitignore: add missing files and .exe variants.
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 44f018b..f4cf40f 100644
index d37d4a6..a49f5f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,23 +1,27 @@
From c3011bbece033baf950468e9c538a58822c839bc Mon Sep 17 00:00:00 2001
From f21c40f33c95d908cee32a5063f285d22574a507 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 29 Jan 2014 23:41:48 +0100
Subject: [PATCH 049/103] * util/grub-mkfont.c: Downgrade warnings about
Subject: [PATCH 050/125] * util/grub-mkfont.c: Downgrade warnings about
unhandled features to debug.
---
ChangeLog | 5 +++++
ChangeLog | 9 +++++++++
util/grub-mkfont.c | 14 ++++++++------
2 files changed, 13 insertions(+), 6 deletions(-)
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f4cf40f..7aac69a 100644
index a49f5f1..9837c7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
@@ -1,3 +1,12 @@
+2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/grub-mkfont.c: Downgrade warnings about unhandled features
+ to debug.
+
+2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
+
2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>

View File

@ -1,7 +1,7 @@
From 8a51c8b80452b6156148177dff95532160a88541 Mon Sep 17 00:00:00 2001
From 5795341bb64a4e101d7c067d688b19a41dd50662 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 29 Jan 2014 23:43:25 +0100
Subject: [PATCH 050/103] * grub-core/disk/ahci.c: Do not enable I/O
Subject: [PATCH 051/125] * grub-core/disk/ahci.c: Do not enable I/O
decoding and keep enabling busmaster for the end.
---
@ -10,7 +10,7 @@ Subject: [PATCH 050/103] * grub-core/disk/ahci.c: Do not enable I/O
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7aac69a..1b8aae2 100644
index 9837c7f..51eba95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From 8465dd514df3e1bbdec7e001c7d3c343cd355d42 Mon Sep 17 00:00:00 2001
From 50cb0018044359180aa57e6aa7ec944def83bbcc Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 29 Jan 2014 23:45:18 +0100
Subject: [PATCH 051/103] * grub-core/disk/ahci.c: Allocate and clean
Subject: [PATCH 052/125] * grub-core/disk/ahci.c: Allocate and clean
space for all possible 32 slots to avoid pointing to uninited area.
---
@ -10,7 +10,7 @@ Subject: [PATCH 051/103] * grub-core/disk/ahci.c: Allocate and clean
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 1b8aae2..2a8f372 100644
index 51eba95..9bb1817 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From 1d7a31631db690d4159e1c1415cb074c9ef25c1f Mon Sep 17 00:00:00 2001
From 3f00de9c207fb4b3f9e45fd775650404ce087aac Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 29 Jan 2014 23:46:17 +0100
Subject: [PATCH 052/103] * grub-core/disk/ahci.c: Add safety cleanups.
Subject: [PATCH 053/125] * grub-core/disk/ahci.c: Add safety cleanups.
---
ChangeLog | 4 ++++
@ -9,7 +9,7 @@ Subject: [PATCH 052/103] * grub-core/disk/ahci.c: Add safety cleanups.
2 files changed, 14 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 2a8f372..0385937 100644
index 9bb1817..15300b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@

View File

@ -1,7 +1,7 @@
From 056070c0cadb1af383d46ca6441f34d79c0298ca Mon Sep 17 00:00:00 2001
From 5e8c619b17cdf70b30d37412738b149d80874c28 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 29 Jan 2014 23:49:51 +0100
Subject: [PATCH 053/103] * grub-core/disk/ahci.c: Properly handle
Subject: [PATCH 054/125] * grub-core/disk/ahci.c: Properly handle
transactions with no transferred data.
---
@ -10,7 +10,7 @@ Subject: [PATCH 053/103] * grub-core/disk/ahci.c: Properly handle
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0385937..d84aff0 100644
index 15300b0..bc1ab23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From a50391c562f002d026dad5ef14ab7fd175154e07 Mon Sep 17 00:00:00 2001
From 45dd39fb467d061a550113fd5e5431209f0db73c Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 29 Jan 2014 23:50:49 +0100
Subject: [PATCH 054/103] * grub-core/disk/ahci.c: Increase timeout.
Subject: [PATCH 055/125] * grub-core/disk/ahci.c: Increase timeout.
Some SSDs take up to 7 seconds to recover if last poweroff was bad.
---
@ -10,7 +10,7 @@ Subject: [PATCH 054/103] * grub-core/disk/ahci.c: Increase timeout.
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d84aff0..9d0b00b 100644
index bc1ab23..1a822f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From e4aba2a9e4a0e2f7966c8225fc4f500a65c81361 Mon Sep 17 00:00:00 2001
From 767cf43a2e5c738df50155cc8729ad0f57d6ab47 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Mon, 3 Feb 2014 14:34:27 +0100
Subject: [PATCH 055/103] * util/grub-mkfont.c: Build fix for argp.h
Subject: [PATCH 056/125] * util/grub-mkfont.c: Build fix for argp.h
with older gcc.
---
@ -10,7 +10,7 @@ Subject: [PATCH 055/103] * util/grub-mkfont.c: Build fix for argp.h
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9d0b00b..f5472af 100644
index 1a822f3..f2bba84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@

View File

@ -1,7 +1,7 @@
From 51490b569b3c08672685eaf85431f7015f55b86d Mon Sep 17 00:00:00 2001
From 3365d3eb4062cee9581f3560ec3e93f8c8ababb2 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Mon, 3 Feb 2014 14:35:51 +0100
Subject: [PATCH 056/103] * util/grub-mkrescue.c: Build fix for argp.h
Subject: [PATCH 057/125] * util/grub-mkrescue.c: Build fix for argp.h
with older gcc.
---
@ -10,7 +10,7 @@ Subject: [PATCH 056/103] * util/grub-mkrescue.c: Build fix for argp.h
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index f5472af..2e0bdfc 100644
index f2bba84..f4a4721 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@

View File

@ -1,7 +1,7 @@
From d2f5eb3848747a696b94baf9bbc525d93dc0a81c Mon Sep 17 00:00:00 2001
From 533058df7c164a4d3498dfaa626923904597f162 Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Tue, 4 Feb 2014 18:41:38 -0200
Subject: [PATCH 057/103] add grub_env_set_net_property function
Subject: [PATCH 058/125] add grub_env_set_net_property function
* grub-core/net/bootp.c: Remove set_env_limn_ro.
* grub-core/net/net.c: Add grub_env_set_net_property.
@ -14,7 +14,7 @@ Subject: [PATCH 057/103] add grub_env_set_net_property function
4 files changed, 66 insertions(+), 47 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2e0bdfc..f7338f4 100644
index f4a4721..63f5aa3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@

View File

@ -1,7 +1,7 @@
From bec34a014c4bad329869b5316204cd07e53fd0ac Mon Sep 17 00:00:00 2001
From 1a768cc5a65094e19c216caf92dd190317df25fc Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Tue, 4 Feb 2014 19:00:55 -0200
Subject: [PATCH 058/103] add bootpath parser for open firmware
Subject: [PATCH 059/125] add bootpath parser for open firmware
It enables net boot even when there is no bootp/dhcp server.
@ -17,7 +17,7 @@ call it at grub_ieee1275_net_config_real.
4 files changed, 125 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f7338f4..5e8eded 100644
index 63f5aa3..5237631 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@

View File

@ -1,7 +1,7 @@
From 009445ef577c51c6b9041f5525d8138977bc24ef Mon Sep 17 00:00:00 2001
From 7f4e3839c9b872f0981e1ecdecfa2bd91065f99c Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Thu, 20 Feb 2014 10:11:43 +0100
Subject: [PATCH 059/103] * grub-core/disk/ahci.c: Ignore NPORTS field
Subject: [PATCH 060/125] * grub-core/disk/ahci.c: Ignore NPORTS field
and rely on PI exclusively.
---
@ -10,7 +10,7 @@ Subject: [PATCH 059/103] * grub-core/disk/ahci.c: Ignore NPORTS field
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 5e8eded..19e13d8 100644
index 5237631..be41aa5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From 77a4d6620a9a9a9ef83fc746d14b330d842b7298 Mon Sep 17 00:00:00 2001
From c65d7e05498edecd560753768114b574f7c3543d Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 28 Feb 2014 09:47:57 +0100
Subject: [PATCH 060/103] * grub-core/kern/i386/coreboot/mmap.c: Filter
Subject: [PATCH 061/125] * grub-core/kern/i386/coreboot/mmap.c: Filter
out 0xa0000-0x100000 region.
---
@ -10,7 +10,7 @@ Subject: [PATCH 060/103] * grub-core/kern/i386/coreboot/mmap.c: Filter
2 files changed, 37 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 19e13d8..6af559a 100644
index be41aa5..4f6f6d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@

View File

@ -1,7 +1,7 @@
From e1c64869c163e44957cca04844753c1dae60ebad Mon Sep 17 00:00:00 2001
From 4530afc725782bbb92d4681fc338acebc4604b45 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 28 Feb 2014 09:48:57 +0100
Subject: [PATCH 061/103] * grub-core/loader/i386/multiboot_mbi.c
Subject: [PATCH 062/125] * grub-core/loader/i386/multiboot_mbi.c
(grub_multiboot_make_mbi): Limit location to 640K.
---
@ -10,7 +10,7 @@ Subject: [PATCH 061/103] * grub-core/loader/i386/multiboot_mbi.c
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 6af559a..8087595 100644
index 4f6f6d6..bbaed26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From 710c688efe8b10b3e6b889158d80d11cca6655ec Mon Sep 17 00:00:00 2001
From e85cc7078e669509d3a22c4e76f94cdd53335fff Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 28 Feb 2014 09:50:47 +0100
Subject: [PATCH 062/103] * grub-core/mmap/i386/uppermem.c (lower_hook)
Subject: [PATCH 063/125] * grub-core/mmap/i386/uppermem.c (lower_hook)
[COREBOOT]: Ignore low tables for low memory calculations.
---
@ -10,7 +10,7 @@ Subject: [PATCH 062/103] * grub-core/mmap/i386/uppermem.c (lower_hook)
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 8087595..76ae629 100644
index bbaed26..6ed6cf4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From 2fecc871c9094c82a78d057d340fb4d83b895cdb Mon Sep 17 00:00:00 2001
From 37e3b5e42930e8cd4e801e4203dc2fde335b4b10 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 28 Feb 2014 10:07:11 +0100
Subject: [PATCH 063/103] * grub-core/kern/i386/pc/mmap.c: Fallback to
Subject: [PATCH 064/125] * grub-core/kern/i386/pc/mmap.c: Fallback to
EISA memory map if E820 failed to return any regions.
---
@ -10,7 +10,7 @@ Subject: [PATCH 063/103] * grub-core/kern/i386/pc/mmap.c: Fallback to
2 files changed, 26 insertions(+), 19 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 76ae629..25ca7db 100644
index 6ed6cf4..97cf57e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@

View File

@ -1,7 +1,7 @@
From d69dfa96c2765e9759d99bc808566b46c599ede0 Mon Sep 17 00:00:00 2001
From 1cdf2c717c0f4a2efac0e5dc8b5c564f930c537a Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 28 Feb 2014 10:50:05 +0100
Subject: [PATCH 064/103] * include/grub/i386/openbsd_bootarg.h: Add
Subject: [PATCH 065/125] * include/grub/i386/openbsd_bootarg.h: Add
addr and frequency fields. * grub-core/loader/i386/bsd.c
(grub_cmd_openbsd): Fill addr field.
MIME-Version: 1.0
@ -16,7 +16,7 @@ Content-Transfer-Encoding: 8bit
3 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 25ca7db..1b17e1b 100644
index 97cf57e..f571f66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@

View File

@ -0,0 +1,33 @@
From 2a20b05871d51635060ab58c1b63ac2ee9f8a359 Mon Sep 17 00:00:00 2001
From: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Date: Thu, 20 Mar 2014 16:57:12 +0530
Subject: [PATCH 066/125] ieee1275: check for IBM pseries emulated machine
is_qemu is not being set lead to disabling of feature like
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF. This resulted in cursor not being
displayed during the grub-menu edit.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
---
grub-core/kern/ieee1275/cmain.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/grub-core/kern/ieee1275/cmain.c b/grub-core/kern/ieee1275/cmain.c
index d92ae14..3e12e6b 100644
--- a/grub-core/kern/ieee1275/cmain.c
+++ b/grub-core/kern/ieee1275/cmain.c
@@ -84,8 +84,10 @@ grub_ieee1275_find_options (void)
rc = grub_ieee1275_get_property (root, "model",
tmp, sizeof (tmp), 0);
- if (rc >= 0 && !grub_strcmp (tmp, "Emulated PC"))
+ if (rc >= 0 && (!grub_strcmp (tmp, "Emulated PC")
+ || !grub_strcmp (tmp, "IBM pSeries (emulated by qemu)"))) {
is_qemu = 1;
+ }
if (rc >= 0 && grub_strncmp (tmp, "IBM", 3) == 0)
grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS);
--
1.9.0

View File

@ -0,0 +1,39 @@
From 530b22a1c04a08fbdb4dcbc3d34bc610af17cc68 Mon Sep 17 00:00:00 2001
From: Fu Wei <fu.wei@linaro.org>
Date: Wed, 26 Mar 2014 08:13:07 +0100
Subject: [PATCH 067/125] * grub-core/loader/arm64/linux.c: Remove
redundant "0x".
---
ChangeLog | 4 ++++
grub-core/loader/arm64/linux.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index f571f66..091535b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-26 Fu Wei <fu.wei@linaro.org>
+
+ * grub-core/loader/arm64/linux.c: Remove redundant "0x".
+
2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c
index 65129c2..f1d10a1 100644
--- a/grub-core/loader/arm64/linux.c
+++ b/grub-core/loader/arm64/linux.c
@@ -68,7 +68,7 @@ get_firmware_fdt (void)
if (grub_memcmp (&tables[i].vendor_guid, &fdt_guid, sizeof (fdt_guid)) == 0)
{
firmware_fdt = tables[i].vendor_table;
- grub_dprintf ("linux", "found registered FDT @ 0x%p\n", firmware_fdt);
+ grub_dprintf ("linux", "found registered FDT @ %p\n", firmware_fdt);
break;
}
--
1.9.0

View File

@ -0,0 +1,39 @@
From 5d1749ea5730be5c9c32228461b784317a500f4b Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Wed, 26 Mar 2014 08:48:30 +0100
Subject: [PATCH 068/125] * grub-core/lib/relocator.c: Fix the case when
end of leftover is used.
---
ChangeLog | 4 ++++
grub-core/lib/relocator.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 091535b..9404eda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
+
2014-03-26 Fu Wei <fu.wei@linaro.org>
* grub-core/loader/arm64/linux.c: Remove redundant "0x".
diff --git a/grub-core/lib/relocator.c b/grub-core/lib/relocator.c
index 9f9770b..cb11ea5 100644
--- a/grub-core/lib/relocator.c
+++ b/grub-core/lib/relocator.c
@@ -865,6 +865,8 @@ malloc_in_range (struct grub_relocator *rel,
% GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
struct grub_relocator_fw_leftover *lo
= events[last_lo].leftover;
+ if (offend == 0 && alloc_end != alloc_start)
+ offend = GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
lo->freebytes[offstart / 8]
&= ((1 << (8 - (start % 8))) - 1);
grub_memset (lo->freebytes + (offstart + 7) / 8, 0,
--
1.9.0

View File

@ -0,0 +1,55 @@
From fdf24f98bc9e4632bfe7f280872cbbf40942ae7b Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Mon, 31 Mar 2014 13:51:17 +0100
Subject: [PATCH 069/125] Fix grub-probe -0 option
* util/grub-probe,c (options): Make -0 work again (broken by
conversion to argp).
(main): Simplify logic.
---
ChangeLog | 6 ++++++
util/grub-probe.c | 7 ++-----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9404eda..efbed8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-03-31 Colin Watson <cjwatson@ubuntu.com>
+
+ * util/grub-probe,c (options): Make -0 work again (broken by
+ conversion to argp).
+ (main): Simplify logic.
+
2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/relocator.c: Fix the case when end of leftover is used.
diff --git a/util/grub-probe.c b/util/grub-probe.c
index 1f3b59f..80509be 100644
--- a/util/grub-probe.c
+++ b/util/grub-probe.c
@@ -711,6 +711,7 @@ static struct argp_option options[] = {
N_("use FILE as the device map [default=%s]"), 0},
{"target", 't', N_("TARGET"), 0, 0, 0},
{"verbose", 'v', 0, 0, N_("print verbose messages."), 0},
+ {0, '0', 0, 0, N_("separate items in output using ASCII NUL characters"), 0},
{ 0, 0, 0, 0, 0, 0 }
};
@@ -884,11 +885,7 @@ main (int argc, char *argv[])
else
probe (arguments.devices[0], NULL, delim);
- if (!arguments.zero_delim && (print == PRINT_BIOS_HINT
- || print == PRINT_IEEE1275_HINT
- || print == PRINT_BAREMETAL_HINT
- || print == PRINT_EFI_HINT
- || print == PRINT_ARC_HINT))
+ if (delim == ' ')
putchar ('\n');
/* Free resources. */
--
1.9.0

View File

@ -0,0 +1,366 @@
From 0a65563c2b355c0eb7412b46f015556691f1b5d1 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Mon, 31 Mar 2014 14:48:33 +0100
Subject: [PATCH 070/125] Fix partmap, cryptodisk, and abstraction handling in
grub-mkconfig.
Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
no longer to be forgiving of trailing spaces on grub-probe output
lines, which among other things means that util/grub.d/10_linux.in
no longer detects LVM. To fix this, make grub-probe's output
delimiting more consistent. As a bonus, this improves the coverage
of the -0 option.
Fixes Debian bug #735935.
* grub-core/disk/cryptodisk.c
(grub_util_cryptodisk_get_abstraction): Add a user-data argument.
* grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
Likewise.
* include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
Update prototype.
* include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
* util/grub-install.c (push_partmap_module, push_cryptodisk_module,
probe_mods): Adjust for extra user-data arguments.
* util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
probe_abstraction): Use configured delimiter. Update callers.
---
ChangeLog | 25 ++++++++++++++++++++++++
grub-core/disk/cryptodisk.c | 19 ++++++++++---------
grub-core/disk/diskfilter.c | 5 +++--
include/grub/cryptodisk.h | 3 ++-
include/grub/diskfilter.h | 3 ++-
util/grub-install.c | 14 ++++++++++----
util/grub-probe.c | 46 ++++++++++++++++++++++-----------------------
7 files changed, 74 insertions(+), 41 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index efbed8c..1cb3b68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,30 @@
2014-03-31 Colin Watson <cjwatson@ubuntu.com>
+ Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
+
+ Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
+ no longer to be forgiving of trailing spaces on grub-probe output
+ lines, which among other things means that util/grub.d/10_linux.in
+ no longer detects LVM. To fix this, make grub-probe's output
+ delimiting more consistent. As a bonus, this improves the coverage
+ of the -0 option.
+
+ Fixes Debian bug #735935.
+
+ * grub-core/disk/cryptodisk.c
+ (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
+ * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
+ Likewise.
+ * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
+ Update prototype.
+ * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
+ * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
+ probe_mods): Adjust for extra user-data arguments.
+ * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
+ probe_abstraction): Use configured delimiter. Update callers.
+
+2014-03-31 Colin Watson <cjwatson@ubuntu.com>
+
* util/grub-probe,c (options): Make -0 work again (broken by
conversion to argp).
(main): Simplify logic.
diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c
index 75c6e1f..f0e3a90 100644
--- a/grub-core/disk/cryptodisk.c
+++ b/grub-core/disk/cryptodisk.c
@@ -762,25 +762,26 @@ grub_cryptodisk_cheat_insert (grub_cryptodisk_t newdev, const char *name,
void
grub_util_cryptodisk_get_abstraction (grub_disk_t disk,
- void (*cb) (const char *val))
+ void (*cb) (const char *val, void *data),
+ void *data)
{
grub_cryptodisk_t dev = (grub_cryptodisk_t) disk->data;
- cb ("cryptodisk");
- cb (dev->modname);
+ cb ("cryptodisk", data);
+ cb (dev->modname, data);
if (dev->cipher)
- cb (dev->cipher->cipher->modname);
+ cb (dev->cipher->cipher->modname, data);
if (dev->secondary_cipher)
- cb (dev->secondary_cipher->cipher->modname);
+ cb (dev->secondary_cipher->cipher->modname, data);
if (dev->essiv_cipher)
- cb (dev->essiv_cipher->cipher->modname);
+ cb (dev->essiv_cipher->cipher->modname, data);
if (dev->hash)
- cb (dev->hash->modname);
+ cb (dev->hash->modname, data);
if (dev->essiv_hash)
- cb (dev->essiv_hash->modname);
+ cb (dev->essiv_hash->modname, data);
if (dev->iv_hash)
- cb (dev->iv_hash->modname);
+ cb (dev->iv_hash->modname, data);
}
const char *
diff --git a/grub-core/disk/diskfilter.c b/grub-core/disk/diskfilter.c
index 28b70c6..e8a3bcb 100644
--- a/grub-core/disk/diskfilter.c
+++ b/grub-core/disk/diskfilter.c
@@ -354,7 +354,8 @@ grub_diskfilter_memberlist (grub_disk_t disk)
void
grub_diskfilter_get_partmap (grub_disk_t disk,
- void (*cb) (const char *pm))
+ void (*cb) (const char *pm, void *data),
+ void *data)
{
struct grub_diskfilter_lv *lv = disk->data;
struct grub_diskfilter_pv *pv;
@@ -376,7 +377,7 @@ grub_diskfilter_get_partmap (grub_disk_t disk,
continue;
}
for (s = 0; pv->partmaps[s]; s++)
- cb (pv->partmaps[s]);
+ cb (pv->partmaps[s], data);
}
}
diff --git a/include/grub/cryptodisk.h b/include/grub/cryptodisk.h
index 66f3e1e..f2ad2a7 100644
--- a/include/grub/cryptodisk.h
+++ b/include/grub/cryptodisk.h
@@ -145,7 +145,8 @@ grub_cryptodisk_cheat_insert (grub_cryptodisk_t newdev, const char *name,
grub_disk_t source, const char *cheat);
void
grub_util_cryptodisk_get_abstraction (grub_disk_t disk,
- void (*cb) (const char *val));
+ void (*cb) (const char *val, void *data),
+ void *data);
char *
grub_util_get_geli_uuid (const char *dev);
diff --git a/include/grub/diskfilter.h b/include/grub/diskfilter.h
index 042fe04..1aedcd3 100644
--- a/include/grub/diskfilter.h
+++ b/include/grub/diskfilter.h
@@ -202,7 +202,8 @@ grub_diskfilter_get_pv_from_disk (grub_disk_t disk,
struct grub_diskfilter_vg **vg);
void
grub_diskfilter_get_partmap (grub_disk_t disk,
- void (*cb) (const char *val));
+ void (*cb) (const char *val, void *data),
+ void *data);
#endif
#endif /* ! GRUB_RAID_H */
diff --git a/util/grub-install.c b/util/grub-install.c
index 2e6226a..e9c6a46 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -387,7 +387,7 @@ probe_raid_level (grub_disk_t disk)
}
static void
-push_partmap_module (const char *map)
+push_partmap_module (const char *map, void *data __attribute__ ((unused)))
{
char buf[50];
@@ -402,6 +402,12 @@ push_partmap_module (const char *map)
}
static void
+push_cryptodisk_module (const char *mod, void *data __attribute__ ((unused)))
+{
+ grub_install_push_module (mod);
+}
+
+static void
probe_mods (grub_disk_t disk)
{
grub_partition_t part;
@@ -412,11 +418,11 @@ probe_mods (grub_disk_t disk)
grub_util_info ("no partition map found for %s", disk->name);
for (part = disk->partition; part; part = part->parent)
- push_partmap_module (part->partmap->name);
+ push_partmap_module (part->partmap->name, NULL);
if (disk->dev->id == GRUB_DISK_DEVICE_DISKFILTER_ID)
{
- grub_diskfilter_get_partmap (disk, push_partmap_module);
+ grub_diskfilter_get_partmap (disk, push_partmap_module, NULL);
have_abstractions = 1;
}
@@ -432,7 +438,7 @@ probe_mods (grub_disk_t disk)
if (disk->dev->id == GRUB_DISK_DEVICE_CRYPTODISK_ID)
{
grub_util_cryptodisk_get_abstraction (disk,
- grub_install_push_module);
+ push_cryptodisk_module, NULL);
have_abstractions = 1;
have_cryptodisk = 1;
}
diff --git a/util/grub-probe.c b/util/grub-probe.c
index 80509be..ecb7b6b 100644
--- a/util/grub-probe.c
+++ b/util/grub-probe.c
@@ -130,13 +130,14 @@ get_targets_string (void)
}
static void
-do_print (const char *x)
+do_print (const char *x, void *data)
{
- grub_printf ("%s ", x);
+ char delim = *(const char *) data;
+ grub_printf ("%s%c", x, delim);
}
static void
-probe_partmap (grub_disk_t disk)
+probe_partmap (grub_disk_t disk, char delim)
{
grub_partition_t part;
grub_disk_memberlist_t list = NULL, tmp;
@@ -147,10 +148,10 @@ probe_partmap (grub_disk_t disk)
}
for (part = disk->partition; part; part = part->parent)
- printf ("%s ", part->partmap->name);
+ printf ("%s%c", part->partmap->name, delim);
if (disk->dev->id == GRUB_DISK_DEVICE_DISKFILTER_ID)
- grub_diskfilter_get_partmap (disk, do_print);
+ grub_diskfilter_get_partmap (disk, do_print, &delim);
/* In case of LVM/RAID, check the member devices as well. */
if (disk->dev->memberlist)
@@ -159,7 +160,7 @@ probe_partmap (grub_disk_t disk)
}
while (list)
{
- probe_partmap (list->disk);
+ probe_partmap (list->disk, delim);
tmp = list->next;
free (list);
list = tmp;
@@ -167,7 +168,7 @@ probe_partmap (grub_disk_t disk)
}
static void
-probe_cryptodisk_uuid (grub_disk_t disk)
+probe_cryptodisk_uuid (grub_disk_t disk, char delim)
{
grub_disk_memberlist_t list = NULL, tmp;
@@ -178,7 +179,7 @@ probe_cryptodisk_uuid (grub_disk_t disk)
}
while (list)
{
- probe_cryptodisk_uuid (list->disk);
+ probe_cryptodisk_uuid (list->disk, delim);
tmp = list->next;
free (list);
list = tmp;
@@ -186,7 +187,7 @@ probe_cryptodisk_uuid (grub_disk_t disk)
if (disk->dev->id == GRUB_DISK_DEVICE_CRYPTODISK_ID)
{
const char *uu = grub_util_cryptodisk_get_uuid (disk);
- grub_printf ("%s ", uu);
+ grub_printf ("%s%c", uu, delim);
}
}
@@ -210,7 +211,7 @@ probe_raid_level (grub_disk_t disk)
}
static void
-probe_abstraction (grub_disk_t disk)
+probe_abstraction (grub_disk_t disk, char delim)
{
grub_disk_memberlist_t list = NULL, tmp;
int raid_level;
@@ -219,7 +220,7 @@ probe_abstraction (grub_disk_t disk)
list = disk->dev->memberlist (disk);
while (list)
{
- probe_abstraction (list->disk);
+ probe_abstraction (list->disk, delim);
tmp = list->next;
free (list);
@@ -229,26 +230,26 @@ probe_abstraction (grub_disk_t disk)
if (disk->dev->id == GRUB_DISK_DEVICE_DISKFILTER_ID
&& (grub_memcmp (disk->name, "lvm/", sizeof ("lvm/") - 1) == 0 ||
grub_memcmp (disk->name, "lvmid/", sizeof ("lvmid/") - 1) == 0))
- printf ("lvm ");
+ printf ("lvm%c", delim);
if (disk->dev->id == GRUB_DISK_DEVICE_DISKFILTER_ID
&& grub_memcmp (disk->name, "ldm/", sizeof ("ldm/") - 1) == 0)
- printf ("ldm ");
+ printf ("ldm%c", delim);
if (disk->dev->id == GRUB_DISK_DEVICE_CRYPTODISK_ID)
- grub_util_cryptodisk_get_abstraction (disk, do_print);
+ grub_util_cryptodisk_get_abstraction (disk, do_print, &delim);
raid_level = probe_raid_level (disk);
if (raid_level >= 0)
{
- printf ("diskfilter ");
+ printf ("diskfilter%c", delim);
if (disk->dev->raidname)
- printf ("%s ", disk->dev->raidname (disk));
+ printf ("%s%c", disk->dev->raidname (disk), delim);
}
if (raid_level == 5)
- printf ("raid5rec ");
+ printf ("raid5rec%c", delim);
if (raid_level == 6)
- printf ("raid6rec ");
+ printf ("raid6rec%c", delim);
}
static void
@@ -630,16 +631,14 @@ probe (const char *path, char **device_names, char delim)
if (print == PRINT_ABSTRACTION)
{
- probe_abstraction (dev->disk);
- putchar (delim);
+ probe_abstraction (dev->disk, delim);
grub_device_close (dev);
continue;
}
if (print == PRINT_CRYPTODISK_UUID)
{
- probe_cryptodisk_uuid (dev->disk);
- putchar (delim);
+ probe_cryptodisk_uuid (dev->disk, delim);
grub_device_close (dev);
continue;
}
@@ -647,8 +646,7 @@ probe (const char *path, char **device_names, char delim)
if (print == PRINT_PARTMAP)
{
/* Check if dev->disk itself is contained in a partmap. */
- probe_partmap (dev->disk);
- putchar (delim);
+ probe_partmap (dev->disk, delim);
grub_device_close (dev);
continue;
}
--
1.9.0

View File

@ -0,0 +1,44 @@
From bd2125649cbeae60a5caff05d5a39c88a4e6eff6 Mon Sep 17 00:00:00 2001
From: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date: Mon, 31 Mar 2014 15:32:30 +0100
Subject: [PATCH 071/125] btrfs: fix get_root key comparison failures due to
endianness
* grub-core/fs/btrfs.c (get_root): Convert
GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
---
ChangeLog | 7 +++++++
grub-core/fs/btrfs.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 1cb3b68..accffad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
+
+ btrfs: fix get_root key comparison failures due to endianness
+
+ * grub-core/fs/btrfs.c (get_root): Convert
+ GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
+
2014-03-31 Colin Watson <cjwatson@ubuntu.com>
Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
index 89666b6..f7b6c15 100644
--- a/grub-core/fs/btrfs.c
+++ b/grub-core/fs/btrfs.c
@@ -1201,7 +1201,7 @@ get_root (struct grub_btrfs_data *data, struct grub_btrfs_key *key,
struct grub_btrfs_key key_out, key_in;
struct grub_btrfs_root_item ri;
- key_in.object_id = GRUB_BTRFS_ROOT_VOL_OBJECTID;
+ key_in.object_id = grub_cpu_to_le64_compile_time (GRUB_BTRFS_ROOT_VOL_OBJECTID);
key_in.offset = 0;
key_in.type = GRUB_BTRFS_ITEM_TYPE_ROOT_ITEM;
err = lower_bound (data, &key_in, &key_out,
--
1.9.0

View File

@ -0,0 +1,55 @@
From c3d9e64a61d17e57ef941a6a46e5a148c51c8519 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Thu, 3 Apr 2014 21:31:12 +0200
Subject: [PATCH 072/125] * grub-core/osdep/linux/getroot.c
(grub_util_part_to_disk): Support NVMe device names.
---
ChangeLog | 5 +++++
grub-core/osdep/linux/getroot.c | 17 +++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index accffad..4a48409 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
+ device names.
+
2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
btrfs: fix get_root key comparison failures due to endianness
diff --git a/grub-core/osdep/linux/getroot.c b/grub-core/osdep/linux/getroot.c
index 19581d3..7007193 100644
--- a/grub-core/osdep/linux/getroot.c
+++ b/grub-core/osdep/linux/getroot.c
@@ -896,6 +896,23 @@ grub_util_part_to_disk (const char *os_dev, struct stat *st,
*pp = '\0';
return path;
}
+
+ /* If this is a NVMe device */
+ if ((strncmp ("nvme", p, 4) == 0) && p[4] >= '0' && p[4] <= '9')
+ {
+ char *pp = p + 4;
+ while (*pp >= '0' && *pp <= '9')
+ pp++;
+ if (*pp == 'n')
+ pp++;
+ while (*pp >= '0' && *pp <= '9')
+ pp++;
+ if (*pp == 'p')
+ *is_part = 1;
+ /* /dev/nvme[0-9]+n[0-9]+p[0-9]* */
+ *pp = '\0';
+ return path;
+ }
}
return path;
--
1.9.0

View File

@ -0,0 +1,102 @@
From cb2cfc87fad111a539e9645f6a96d0a89a28c8ab Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 4 Apr 2014 07:58:42 +0200
Subject: [PATCH 073/125] Replace few instances of memcmp/memcpy in the code
that should be grub_memcmp/grub_memcpy.
---
ChangeLog | 5 +++++
grub-core/commands/acpihalt.c | 4 ++--
grub-core/commands/legacycfg.c | 4 ++--
grub-core/lib/relocator.c | 2 +-
grub-core/loader/i386/bsd.c | 4 ++--
5 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4a48409..f18cdba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Replace few instances of memcmp/memcpy in the code that should be
+ grub_memcmp/grub_memcpy.
+
2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
diff --git a/grub-core/commands/acpihalt.c b/grub-core/commands/acpihalt.c
index 09421a6..83bdfe1 100644
--- a/grub-core/commands/acpihalt.c
+++ b/grub-core/commands/acpihalt.c
@@ -214,8 +214,8 @@ get_sleep_type (grub_uint8_t *table, grub_uint8_t *ptr, grub_uint8_t *end,
}
case GRUB_ACPI_OPCODE_NAME:
ptr++;
- if ((!scope || memcmp (scope, "\\", scope_len) == 0) &&
- (memcmp (ptr, "_S5_", 4) == 0 || memcmp (ptr, "\\_S5_", 4) == 0))
+ if ((!scope || grub_memcmp (scope, "\\", scope_len) == 0) &&
+ (grub_memcmp (ptr, "_S5_", 4) == 0 || grub_memcmp (ptr, "\\_S5_", 4) == 0))
{
int ll;
grub_uint8_t *ptr2 = ptr;
diff --git a/grub-core/commands/legacycfg.c b/grub-core/commands/legacycfg.c
index e42a9d8..2c09fb7 100644
--- a/grub-core/commands/legacycfg.c
+++ b/grub-core/commands/legacycfg.c
@@ -580,7 +580,7 @@ check_password_md5_real (const char *entered,
GRUB_MD_MD5->write (ctx, entered, enteredlen);
digest = GRUB_MD_MD5->read (ctx);
GRUB_MD_MD5->final (ctx);
- memcpy (alt_result, digest, MD5_HASHLEN);
+ grub_memcpy (alt_result, digest, MD5_HASHLEN);
GRUB_MD_MD5->init (ctx);
GRUB_MD_MD5->write (ctx, entered, enteredlen);
@@ -596,7 +596,7 @@ check_password_md5_real (const char *entered,
for (i = 0; i < 1000; i++)
{
- memcpy (alt_result, digest, 16);
+ grub_memcpy (alt_result, digest, 16);
GRUB_MD_MD5->init (ctx);
if ((i & 1) != 0)
diff --git a/grub-core/lib/relocator.c b/grub-core/lib/relocator.c
index cb11ea5..f759c7f 100644
--- a/grub-core/lib/relocator.c
+++ b/grub-core/lib/relocator.c
@@ -652,7 +652,7 @@ malloc_in_range (struct grub_relocator *rel,
for (i = 0; i < (BITS_IN_BYTE * sizeof (grub_addr_t) / DIGITSORT_BITS);
i++)
{
- memset (counter, 0, (1 + (1 << DIGITSORT_BITS)) * sizeof (counter[0]));
+ grub_memset (counter, 0, (1 + (1 << DIGITSORT_BITS)) * sizeof (counter[0]));
for (j = 0; j < N; j++)
counter[((events[j].pos >> (DIGITSORT_BITS * i))
& DIGITSORT_MASK) + 1]++;
diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
index 19985f0..41ef910 100644
--- a/grub-core/loader/i386/bsd.c
+++ b/grub-core/loader/i386/bsd.c
@@ -1082,7 +1082,7 @@ grub_netbsd_add_boot_disk_and_wedge (void)
grub_crypto_hash (GRUB_MD_MD5, hash,
buf.raw, GRUB_DISK_SECTOR_SIZE);
- memcpy (biw.matchhash, hash, 16);
+ grub_memcpy (biw.matchhash, hash, 16);
grub_bsd_add_meta (NETBSD_BTINFO_BOOTWEDGE, &biw, sizeof (biw));
}
@@ -1100,7 +1100,7 @@ grub_netbsd_add_boot_disk_and_wedge (void)
bid.labelsector = partmapsector;
bid.label.type = buf.label.type;
bid.label.checksum = buf.label.checksum;
- memcpy (bid.label.packname, buf.label.packname, 16);
+ grub_memcpy (bid.label.packname, buf.label.packname, 16);
}
else
{
--
1.9.0

View File

@ -0,0 +1,47 @@
From 91152c6e2944e9ad3583482140f8991b972fec08 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 4 Apr 2014 08:02:38 +0200
Subject: [PATCH 074/125] * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2.
They're no longer pulled from libgcc.
---
ChangeLog | 5 +++++
include/grub/libgcc.h | 7 -------
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f18cdba..90e41bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
+ * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
+ pulled from libgcc.
+
+2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
+
Replace few instances of memcmp/memcpy in the code that should be
grub_memcmp/grub_memcpy.
diff --git a/include/grub/libgcc.h b/include/grub/libgcc.h
index fdc6611..97233d7 100644
--- a/include/grub/libgcc.h
+++ b/include/grub/libgcc.h
@@ -42,13 +42,6 @@ void EXPORT_FUNC (__bswapsi2) (void);
# ifdef HAVE___BSWAPDI2
void EXPORT_FUNC (__bswapdi2) (void);
# endif
-# ifdef HAVE___CTZDI2
-void EXPORT_FUNC (__ctzdi2) (void);
-# endif
-# ifdef HAVE___CTZSI2
-void EXPORT_FUNC (__ctzsi2) (void);
-# endif
-#endif
#ifdef HAVE__RESTGPR_14_X
void EXPORT_FUNC (_restgpr_14_x) (void);
--
1.9.0

View File

@ -0,0 +1,24 @@
From fb1b02802aa368f43c8d0a871e017c14cb39b180 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Fri, 4 Apr 2014 08:11:15 +0200
Subject: [PATCH 075/125] Add missing #endif
---
include/grub/libgcc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/grub/libgcc.h b/include/grub/libgcc.h
index 97233d7..8e93b67 100644
--- a/include/grub/libgcc.h
+++ b/include/grub/libgcc.h
@@ -42,6 +42,7 @@ void EXPORT_FUNC (__bswapsi2) (void);
# ifdef HAVE___BSWAPDI2
void EXPORT_FUNC (__bswapdi2) (void);
# endif
+#endif
#ifdef HAVE__RESTGPR_14_X
void EXPORT_FUNC (_restgpr_14_x) (void);
--
1.9.0

View File

@ -0,0 +1,39 @@
From fb62186fefaca6b302eb61081bb6281042ff7283 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sun, 6 Apr 2014 00:44:44 +0200
Subject: [PATCH 076/125] * grub-core/lib/syslinux_parse.c: Fix timeout
quoting.
---
ChangeLog | 4 ++++
grub-core/lib/syslinux_parse.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 90e41bd..50d9291 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
+
2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
diff --git a/grub-core/lib/syslinux_parse.c b/grub-core/lib/syslinux_parse.c
index 21fa175..6bc504b 100644
--- a/grub-core/lib/syslinux_parse.c
+++ b/grub-core/lib/syslinux_parse.c
@@ -1432,7 +1432,7 @@ config_file (struct output_buffer *outbuf,
for (curentry = menu.entries; curentry->next; curentry = curentry->next);
lentry = curentry;
- print_string ("set timeout='");
+ print_string ("set timeout=");
err = print_num (outbuf, (menu.timeout + 9) / 10);
if (err)
return err;
--
1.9.0

View File

@ -0,0 +1,45 @@
From d576e05a7bfe25413f70b54f671f305397bacf5e Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Thu, 10 Apr 2014 14:42:41 +0100
Subject: [PATCH 077/125] Improve LVM "logical_volumes" string matching
* grub-core/disk/lvm.c (grub_lvm_detect): Search for
"logical_volumes" block a little more accurately.
---
ChangeLog | 5 +++++
grub-core/disk/lvm.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 50d9291..7f0c57d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-10 Colin Watson <cjwatson@ubuntu.com>
+
+ * grub-core/disk/lvm.c (grub_lvm_detect): Search for
+ "logical_volumes" block a little more accurately.
+
2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/syslinux_parse.c: Fix timeout quoting.
diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c
index 483c17e..862a966 100644
--- a/grub-core/disk/lvm.c
+++ b/grub-core/disk/lvm.c
@@ -333,10 +333,10 @@ grub_lvm_detect (grub_disk_t disk,
}
}
- p = grub_strstr (p, "logical_volumes");
+ p = grub_strstr (p, "logical_volumes {");
if (p)
{
- p += sizeof ("logical_volumes = ") - 1;
+ p += sizeof ("logical_volumes {") - 1;
/* And add all the lvs to the volume group. */
while (1)
--
1.9.0

View File

@ -0,0 +1,83 @@
From 0942ce33c5b88d85a6b81f4b3dd75c32fdf21978 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Thu, 10 Apr 2014 16:54:33 +0100
Subject: [PATCH 078/125] Tolerate devices with no filesystem UUID returned by
os-prober
* util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
UUID. Other parts of grub-mkconfig tolerate these, they were
previously allowed here up to commit
55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
practice when the system has active LVM snapshots.
Fixes Ubuntu bug #1287436.
---
ChangeLog | 9 +++++++++
util/grub.d/30_os-prober.in | 23 +++++++++++++----------
2 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7f0c57d..3556468 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2014-04-10 Colin Watson <cjwatson@ubuntu.com>
+ * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
+ UUID. Other parts of grub-mkconfig tolerate these, they were
+ previously allowed here up to commit
+ 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
+ practice when the system has active LVM snapshots.
+ Fixes Ubuntu bug #1287436.
+
+2014-04-10 Colin Watson <cjwatson@ubuntu.com>
+
* grub-core/disk/lvm.c (grub_lvm_detect): Search for
"logical_volumes" block a little more accurately.
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
index 7cf8487..6f38c82 100644
--- a/util/grub.d/30_os-prober.in
+++ b/util/grub.d/30_os-prober.in
@@ -112,16 +112,17 @@ for OS in ${OSPROBED} ; do
LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
BOOT="`echo ${OS} | cut -d ':' -f 4`"
- UUID="`${grub_probe} --target=fs_uuid --device ${DEVICE%@*}`"
- EXPUUID="$UUID"
+ if UUID="`${grub_probe} --target=fs_uuid --device ${DEVICE%@*}`"; then
+ EXPUUID="$UUID"
- if [ x"${DEVICE#*@}" != x ] ; then
+ if [ x"${DEVICE#*@}" != x ] ; then
EXPUUID="${EXPUUID}@${DEVICE#*@}"
- fi
+ fi
- if [ "x${GRUB_OS_PROBER_SKIP_LIST}" != "x" ] && [ "x`echo ${GRUB_OS_PROBER_SKIP_LIST} | grep -i -e '\b'${EXPUUID}'\b'`" != "x" ] ; then
- echo "Skipped ${LONGNAME} on ${DEVICE} by user request." >&2
- continue
+ if [ "x${GRUB_OS_PROBER_SKIP_LIST}" != "x" ] && [ "x`echo ${GRUB_OS_PROBER_SKIP_LIST} | grep -i -e '\b'${EXPUUID}'\b'`" != "x" ] ; then
+ echo "Skipped ${LONGNAME} on ${DEVICE} by user request." >&2
+ continue
+ fi
fi
BTRFS="`echo ${OS} | cut -d ':' -f 5`"
@@ -277,9 +278,11 @@ EOF
echo "$title_correction_code"
;;
macosx)
- OSXUUID="${UUID}"
- osx_entry xnu_kernel 32
- osx_entry xnu_kernel64 64
+ if [ "${UUID}" ]; then
+ OSXUUID="${UUID}"
+ osx_entry xnu_kernel 32
+ osx_entry xnu_kernel64 64
+ fi
;;
hurd)
onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
--
1.9.0

View File

@ -0,0 +1,49 @@
From 42c1756fd0ff7d94dcc8e9be2e429a2a976f6d41 Mon Sep 17 00:00:00 2001
From: Piotr Krysiuk <piotras@gmail.com>
Date: Sun, 20 Apr 2014 15:58:45 +0200
Subject: [PATCH 079/125] Allow loading old kernels by placing GDT in
conventional memory.
---
ChangeLog | 5 +++++
grub-core/lib/i386/relocator.c | 11 +++++++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3556468..73a8928 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-20 Piotr Krysiuk <piotras@gmail.com>
+
+ * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
+ GDT in conventional memory.
+
2014-04-10 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
diff --git a/grub-core/lib/i386/relocator.c b/grub-core/lib/i386/relocator.c
index d2a1b27..ffaf25f 100644
--- a/grub-core/lib/i386/relocator.c
+++ b/grub-core/lib/i386/relocator.c
@@ -81,10 +81,13 @@ grub_relocator32_boot (struct grub_relocator *rel,
void *relst;
grub_relocator_chunk_t ch;
- err = grub_relocator_alloc_chunk_align (rel, &ch, 0,
- (0xffffffff - RELOCATOR_SIZEOF (32))
- + 1, RELOCATOR_SIZEOF (32), 16,
- GRUB_RELOCATOR_PREFERENCE_NONE,
+ /* Specific memory range due to Global Descriptor Table for use by payload
+ that we will store in returned chunk. The address range and preference
+ are based on "THE LINUX/x86 BOOT PROTOCOL" specification. */
+ err = grub_relocator_alloc_chunk_align (rel, &ch, 0x1000,
+ 0x9a000 - RELOCATOR_SIZEOF (32),
+ RELOCATOR_SIZEOF (32), 16,
+ GRUB_RELOCATOR_PREFERENCE_LOW,
avoid_efi_bootservices);
if (err)
return err;
--
1.9.0

View File

@ -0,0 +1,43 @@
From ec4609b70a7deebf6381297aae95dd4bf05bd008 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Sun, 20 Apr 2014 16:12:41 +0200
Subject: [PATCH 080/125] * grub-core/kern/misc.c (__bzero): Don't
compile in GRUB_UTIL.
Reported by: Yves Blusseau <blusseau@zetam.org>.
---
ChangeLog | 6 ++++++
grub-core/kern/misc.c | 3 +++
2 files changed, 9 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 73a8928..3b61c0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
+
+ Reported by: Yves Blusseau <blusseau@zetam.org>.
+
2014-04-20 Piotr Krysiuk <piotras@gmail.com>
* grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
index 54db2e1..c5c815d 100644
--- a/grub-core/kern/misc.c
+++ b/grub-core/kern/misc.c
@@ -542,6 +542,9 @@ memset (void *s, int c, grub_size_t n)
return grub_memset (s, c, n);
}
+#endif
+
+#if !defined(GRUB_UTIL) && defined(__APPLE__)
void GRUB_BUILTIN_ATTR
__bzero (void *s, grub_size_t n)
{
--
1.9.0

View File

@ -0,0 +1,40 @@
From 4a307e8fe1298f88641a40c8a8008363aa4b9c17 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Mon, 12 May 2014 10:01:48 +0200
Subject: [PATCH 081/125] * grub-core/commands/verify.c
(grub_pubkey_open): Fix memdisk check.
---
ChangeLog | 5 +++++
grub-core/commands/verify.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 3b61c0a..d0896d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
+ check.
+
2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
index a9dfd88..6349ccf 100644
--- a/grub-core/commands/verify.c
+++ b/grub-core/commands/verify.c
@@ -835,7 +835,7 @@ grub_pubkey_open (grub_file_t io, const char *filename)
if (!sec)
return io;
- if (io->device->disk && io->device->disk->id == GRUB_DISK_DEVICE_MEMDISK_ID)
+ if (io->device->disk && io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID)
return io;
fsuf = grub_malloc (grub_strlen (filename) + sizeof (".sig"));
if (!fsuf)
--
1.9.0

View File

@ -0,0 +1,43 @@
From 61fdf8bebdeaed4b601f0eca847282780380191f Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Thu, 15 May 2014 14:36:48 +0200
Subject: [PATCH 082/125] * grub-core/commands/verify.c
(grub_pubkey_open): Trust procfs.
---
ChangeLog | 4 ++++
grub-core/commands/verify.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d0896d8..2a94ad9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
+ * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
+
+2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
+
* grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
check.
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
index 6349ccf..525bdd1 100644
--- a/grub-core/commands/verify.c
+++ b/grub-core/commands/verify.c
@@ -835,7 +835,9 @@ grub_pubkey_open (grub_file_t io, const char *filename)
if (!sec)
return io;
- if (io->device->disk && io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID)
+ if (io->device->disk &&
+ (io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID
+ || io->device->disk->dev->id == GRUB_DISK_DEVICE_PROCFS_ID))
return io;
fsuf = grub_malloc (grub_strlen (filename) + sizeof (".sig"));
if (!fsuf)
--
1.9.0

View File

@ -1,26 +0,0 @@
From ceaa93bab3ce4b8ed8ac4448e39bbf017749a757 Mon Sep 17 00:00:00 2001
From: William Jon McCann <william.jon.mccann@gmail.com>
Date: Wed, 15 May 2013 17:49:45 -0400
Subject: [PATCH 083/103] Don't add '*' to highlighted row
It is already highlighted.
---
grub-core/normal/menu_text.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
index daf92b5..2f84fcc 100644
--- a/grub-core/normal/menu_text.c
+++ b/grub-core/normal/menu_text.c
@@ -242,7 +242,7 @@ print_entry (int y, int highlight, grub_menu_entry_t entry,
unicode_title[i] = ' ';
if (data->geo.num_entries > 1)
- grub_putcode (' ', term);
+ grub_putcode (' ', data->term);
grub_print_ucs4_menu (unicode_title,
unicode_title + len,
--
1.9.0

View File

@ -0,0 +1,73 @@
From 473348e663de53939fc077a1e1ef262405712dd8 Mon Sep 17 00:00:00 2001
From: Trevor Woerner <trevor.woerner@linaro.org>
Date: Sat, 21 Jun 2014 20:26:47 +0200
Subject: [PATCH 083/125] * util/grub-gen-asciih.c (add_glyph): Fix
uninitialised variable.
---
ChangeLog | 4 ++++
util/grub-gen-asciih.c | 15 +++++++++------
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2a94ad9..b552113 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
+
+ * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
+
2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
diff --git a/util/grub-gen-asciih.c b/util/grub-gen-asciih.c
index e01447a..e35dcb7 100644
--- a/util/grub-gen-asciih.c
+++ b/util/grub-gen-asciih.c
@@ -81,14 +81,14 @@ add_glyph (FT_UInt glyph_idx, FT_Face face,
err = FT_Load_Glyph (face, glyph_idx, flag);
if (err)
{
- printf ("Freetype Error %d loading glyph 0x%x for U+0x%x",
+ fprintf (stderr, "Freetype Error %d loading glyph 0x%x for U+0x%x",
err, glyph_idx, char_code);
if (err > 0 && err < (signed) ARRAY_SIZE (ft_errmsgs))
- printf (": %s\n", ft_errmsgs[err]);
+ fprintf (stderr, ": %s\n", ft_errmsgs[err]);
else
- printf ("\n");
- return;
+ fprintf (stderr, "\n");
+ exit (1);
}
glyph = face->glyph;
@@ -128,7 +128,6 @@ add_glyph (FT_UInt glyph_idx, FT_Face face,
static void
write_font_ascii_bitmap (FILE *file, FT_Face face)
{
- struct grub_glyph_info glyph;
int char_code;
fprintf (file, "/* THIS CHUNK OF BYTES IS AUTOMATICALLY GENERATED */\n");
@@ -138,10 +137,14 @@ write_font_ascii_bitmap (FILE *file, FT_Face face)
for (char_code = 0; char_code <= 0x7f; char_code++)
{
FT_UInt glyph_idx;
-
+ struct grub_glyph_info glyph;
+
glyph_idx = FT_Get_Char_Index (face, char_code);
if (!glyph_idx)
return;
+
+ memset (&glyph, 0, sizeof(glyph));
+
add_glyph (glyph_idx, face, char_code, &glyph);
if (glyph.width == 8 && glyph.height == 16
--
1.9.0

View File

@ -0,0 +1,39 @@
From 9de53cc99ce4c8e404e645443d07324bd9cfc157 Mon Sep 17 00:00:00 2001
From: Stephane Rochoy <sheda>
Date: Sun, 22 Jun 2014 01:34:57 +0200
Subject: [PATCH 084/125] * grub-core/commands/efi/lsefisystab.c
(grub_cmd_lsefisystab): Show EFI system table physical address.
---
ChangeLog | 5 +++++
grub-core/commands/efi/lsefisystab.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index b552113..abf8f4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-21 Stephane Rochoy <sheda>
+
+ * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
+ EFI system table physical address.
+
2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
* util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
diff --git a/grub-core/commands/efi/lsefisystab.c b/grub-core/commands/efi/lsefisystab.c
index eda8c5f..8717db9 100644
--- a/grub-core/commands/efi/lsefisystab.c
+++ b/grub-core/commands/efi/lsefisystab.c
@@ -52,6 +52,7 @@ grub_cmd_lsefisystab (struct grub_command *cmd __attribute__ ((unused)),
grub_efi_configuration_table_t *t;
unsigned int i;
+ grub_printf ("Address: %p\n", st);
grub_printf ("Signature: %016" PRIxGRUB_UINT64_T " revision: %08x\n",
st->hdr.signature, st->hdr.revision);
{
--
1.9.0

View File

@ -0,0 +1,72 @@
From 3be166827cecb977ad47ac4d3d89ec92688307a4 Mon Sep 17 00:00:00 2001
From: Stephane Rochoy <sheda>
Date: Sun, 22 Jun 2014 01:35:52 +0200
Subject: [PATCH 085/125] * grub-core/loader/i386/bsd.c
(grub_netbsd_boot): Pass pointer to EFI system table.
---
ChangeLog | 5 +++++
grub-core/loader/i386/bsd.c | 8 ++++++++
include/grub/i386/netbsd_bootinfo.h | 7 +++++++
3 files changed, 20 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index abf8f4b..0cdd095 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2014-06-21 Stephane Rochoy <sheda>
+ * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
+ EFI system table.
+
+2014-06-21 Stephane Rochoy <sheda>
+
* grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
EFI system table physical address.
diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
index 41ef910..8f691e0 100644
--- a/grub-core/loader/i386/bsd.c
+++ b/grub-core/loader/i386/bsd.c
@@ -1145,6 +1145,14 @@ grub_netbsd_boot (void)
if (err)
return err;
+#ifdef GRUB_MACHINE_EFI
+ err = grub_bsd_add_meta (NETBSD_BTINFO_EFI,
+ &grub_efi_system_table,
+ sizeof (grub_efi_system_table));
+ if (err)
+ return err;
+#endif
+
{
struct bsd_tag *tag;
tag_buf_len = 0;
diff --git a/include/grub/i386/netbsd_bootinfo.h b/include/grub/i386/netbsd_bootinfo.h
index e48c19b..9b4f460 100644
--- a/include/grub/i386/netbsd_bootinfo.h
+++ b/include/grub/i386/netbsd_bootinfo.h
@@ -58,6 +58,8 @@
#define NETBSD_BTINFO_BOOTWEDGE 10
#define NETBSD_BTINFO_MODULES 11
#define NETBSD_BTINFO_FRAMEBUF 12
+#define NETBSD_BTINFO_USERCONFCOMMANDS 13
+#define NETBSD_BTINFO_EFI 14
struct grub_netbsd_bootinfo
{
@@ -146,4 +148,9 @@ struct grub_netbsd_btinfo_framebuf
#define GRUB_NETBSD_MAX_ROOTDEVICE_LEN 16
+struct grub_netbsd_btinfo_efi
+{
+ void *pa_systbl; /* Physical address of the EFI System Table */
+};
+
#endif
--
1.9.0

View File

@ -0,0 +1,47 @@
From d45ed8a6bf7c0c0abacb268da1f6d569743f16a0 Mon Sep 17 00:00:00 2001
From: Glenn Washburn <development@efficientek.com>
Date: Sun, 22 Jun 2014 01:45:11 +0200
Subject: [PATCH 086/125] * util/grub-install.c: Fix handling of
--disk-module.
---
ChangeLog | 4 ++++
util/grub-install.c | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0cdd095..4ce6643 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-21 Glenn Washburn <development@efficientek.com>
+
+ * util/grub-install.c: Fix handling of --disk-module.
+
2014-06-21 Stephane Rochoy <sheda>
* grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
diff --git a/util/grub-install.c b/util/grub-install.c
index e9c6a46..7d61c32 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -94,7 +94,6 @@ enum
OPTION_RECHECK,
OPTION_FORCE,
OPTION_FORCE_FILE_ID,
- OPTION_MODULE,
OPTION_NO_NVRAM,
OPTION_REMOVABLE,
OPTION_BOOTLOADER_ID,
@@ -273,7 +272,7 @@ static struct argp_option options[] = {
N_("install even if problems are detected"), 2},
{"force-file-id", OPTION_FORCE_FILE_ID, 0, 0,
N_("use identifier file even if UUID is available"), 2},
- {"disk-module", OPTION_MODULE, N_("MODULE"), 0,
+ {"disk-module", OPTION_DISK_MODULE, N_("MODULE"), 0,
N_("disk module to use (biosdisk or native). "
"This option is only available on BIOS target."), 2},
{"no-nvram", OPTION_NO_NVRAM, 0, 0,
--
1.9.0

View File

@ -0,0 +1,58 @@
From a9c472a7eeec6816868dbccce6decaef3b3c62bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=9F=D0=B5=D1=85=D0=BE?=
=?UTF-8?q?=D0=B2?= <roman_pekhov>
Date: Sun, 22 Jun 2014 03:51:50 +0400
Subject: [PATCH 087/125] * grub-core/commands/loadenv.c
(check_blocklists): Fix overlap check.
---
ChangeLog | 4 ++++
grub-core/commands/loadenv.c | 13 ++-----------
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4ce6643..a2da974 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-21 Роман Пехов <roman_pekhov>
+
+ * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
+
2014-06-21 Glenn Washburn <development@efficientek.com>
* util/grub-install.c: Fix handling of --disk-module.
diff --git a/grub-core/commands/loadenv.c b/grub-core/commands/loadenv.c
index 6af8112..acd93d1 100644
--- a/grub-core/commands/loadenv.c
+++ b/grub-core/commands/loadenv.c
@@ -263,7 +263,7 @@ check_blocklists (grub_envblk_t envblk, struct blocklist *blocklists,
for (q = p->next; q; q = q->next)
{
grub_disk_addr_t s1, s2;
- grub_disk_addr_t e1, e2, t;
+ grub_disk_addr_t e1, e2;
s1 = p->sector;
e1 = s1 + ((p->length + GRUB_DISK_SECTOR_SIZE - 1) >> GRUB_DISK_SECTOR_BITS);
@@ -271,16 +271,7 @@ check_blocklists (grub_envblk_t envblk, struct blocklist *blocklists,
s2 = q->sector;
e2 = s2 + ((q->length + GRUB_DISK_SECTOR_SIZE - 1) >> GRUB_DISK_SECTOR_BITS);
- if (s2 > s1)
- {
- t = s2;
- s2 = s1;
- s1 = t;
- t = e2;
- e2 = e1;
- e1 = t;
- }
- if (e1 > s2)
+ if (s1 < e2 && s2 < e1)
{
/* This might be actually valid, but it is unbelievable that
any filesystem makes such a silly allocation. */
--
1.9.0

View File

@ -0,0 +1,26 @@
From e4ecf3a1f8eef683feae27ed84c85eb8aeb79e11 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Sat, 28 Dec 2013 02:20:27 +0000
Subject: [PATCH 088/125] * NEWS: The cmosclean command in fact dates back to
1.99. Remove mention of it from 2.02.
---
NEWS | 2 ++
1 file changed, 2 insertions(+)
diff --git a/NEWS b/NEWS
index a61df94..f621c65 100644
--- a/NEWS
+++ b/NEWS
@@ -63,6 +63,8 @@ New in 2.02:
* New `efifwsetup' and `lsefi' commands on EFI platforms.
* New `cmosdump' and `cmosset' commands on platforms with CMOS support.
* New command `pcidump' for PCI platforms.
+ * New `cbmemc', `coreboot_boottime', and `lscoreboot' commands on
+ coreboot.
* Improve opcode parsing in ACPI halt implementation.
* Use the TSC as a possible time source on i386-ieee1275.
* Merge PowerPC grub-mkrescue implementation with the common one.
--
1.9.0

View File

@ -1,7 +1,7 @@
From 4d75121a7fa86a60b646c96e2d75caa0d70c408e Mon Sep 17 00:00:00 2001
From f01392a68f7f20bcc064a7d28e10805509701c4d Mon Sep 17 00:00:00 2001
From: Mark Hamzy <hamzy@us.ibm.com>
Date: Wed, 28 Mar 2012 14:46:41 -0500
Subject: [PATCH 065/103] Migrate PPC from Yaboot to Grub2
Subject: [PATCH 089/125] Migrate PPC from Yaboot to Grub2
Add configuration support for serial terminal consoles. This will set the
maximum screen size so that text is not overwritten.

View File

@ -1,7 +1,7 @@
From ae053ae71b4d7e3168f6d97398f0d137929fafd0 Mon Sep 17 00:00:00 2001
From 5bd3e1f888eeddc2575608516220ffa7b8270c7a Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Wed, 19 Sep 2012 21:22:55 -0300
Subject: [PATCH 066/103] Add fw_path variable (revised)
Subject: [PATCH 090/125] Add fw_path variable (revised)
This patch makes grub look for its config file on efi where the app was
found. It was originally written by Matthew Garrett, and adapted to fix the

View File

@ -1,7 +1,7 @@
From f84fdfda066a9b46598847f7af0f02c97fb8cdc5 Mon Sep 17 00:00:00 2001
From 70e7bfb2caa9d0f52187b4f6e84762c6459c5903 Mon Sep 17 00:00:00 2001
From: Matthew Garrett <mjg@redhat.com>
Date: Tue, 10 Jul 2012 11:58:52 -0400
Subject: [PATCH 067/103] Add support for linuxefi
Subject: [PATCH 091/125] Add support for linuxefi
---
grub-core/Makefile.core.def | 8 +

View File

@ -1,7 +1,7 @@
From f606b7dfc35082809dd68dccf47d16db7d741085 Mon Sep 17 00:00:00 2001
From acc83cfa76a6457be73b1e748a80deb3967e2364 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Mon, 16 Jul 2012 18:57:11 -0400
Subject: [PATCH 068/103] Use "linuxefi" and "initrdefi" where appropriate.
Subject: [PATCH 092/125] Use "linuxefi" and "initrdefi" where appropriate.
---
util/grub.d/10_linux.in | 18 ++++++++++++++++--

View File

@ -1,7 +1,7 @@
From 87edbb7d2e669de75f05d28329f72464ce5d4ee3 Mon Sep 17 00:00:00 2001
From fe7b32ab9e58470fdf930d8efc7c9ebcd69e6ef3 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Tue, 23 Oct 2012 10:40:49 -0400
Subject: [PATCH 069/103] Don't allow insmod when secure boot is enabled.
Subject: [PATCH 093/125] Don't allow insmod when secure boot is enabled.
Hi,

View File

@ -1,7 +1,7 @@
From 438e7306ea31c03ee86c4cdf97b2802443e5e4dd Mon Sep 17 00:00:00 2001
From a4f335a93d417c7f51f715d55ae59621fc9772ad Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Mon, 1 Oct 2012 13:24:37 -0400
Subject: [PATCH 070/103] Pass "\x[[:hex:]][[:hex:]]" straight through
Subject: [PATCH 094/125] Pass "\x[[:hex:]][[:hex:]]" straight through
unmolested.
---

View File

@ -1,7 +1,7 @@
From 0a40f0fc38bf46df57c411b673299c20120cf9b2 Mon Sep 17 00:00:00 2001
From e5a51c7c96d347cd6cbb7a2aa11f5dd7358c802a Mon Sep 17 00:00:00 2001
From: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
Date: Tue, 25 Sep 2012 18:40:55 -0400
Subject: [PATCH 071/103] Fix crash on http
Subject: [PATCH 095/125] Fix crash on http
Don't free file->data on receiving FIN flag since it is used all over without
checking. http_close() will be called later to free that memory.

View File

@ -1,7 +1,7 @@
From 751b9439b85ba9f6a6da7b08bc261fcf68f6ea94 Mon Sep 17 00:00:00 2001
From 9d1411ffa7290c1cbdc9ee95bb5fcc5506e63e0f Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Thu, 20 Sep 2012 18:07:39 -0300
Subject: [PATCH 072/103] IBM client architecture (CAS) reboot support
Subject: [PATCH 096/125] IBM client architecture (CAS) reboot support
This is an implementation of IBM client architecture (CAS) reboot for GRUB.

View File

@ -1,7 +1,7 @@
From e6fbb3e8b50fb1e41f1466d2ef11c88868702f49 Mon Sep 17 00:00:00 2001
From c987623113e2d03e80f0ba1e108bf0a800628f85 Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Tue, 30 Oct 2012 15:19:39 -0200
Subject: [PATCH 073/103] Add vlan-tag support
Subject: [PATCH 097/125] Add vlan-tag support
This patch adds support for virtual LAN (VLAN) tagging. VLAN tagging allows
multiple VLANs in a bridged network to share the same physical network link but

View File

@ -1,17 +1,17 @@
From 6831a99c8594a644adb7da3fe8191c01b42f1912 Mon Sep 17 00:00:00 2001
From d7aaf1651f4b36721f73331753d017d33d7879b4 Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Tue, 27 Nov 2012 16:58:39 -0200
Subject: [PATCH 074/103] Add %X option to printf functions.
Subject: [PATCH 098/125] Add %X option to printf functions.
---
grub-core/kern/misc.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
index 54db2e1..50f7f53 100644
index c5c815d..a56cfe7 100644
--- a/grub-core/kern/misc.c
+++ b/grub-core/kern/misc.c
@@ -759,7 +759,7 @@ __umoddi3 (grub_uint64_t a, grub_uint64_t b)
@@ -762,7 +762,7 @@ __umoddi3 (grub_uint64_t a, grub_uint64_t b)
static inline char *
grub_lltoa (char *str, int c, unsigned long long n)
{
@ -20,7 +20,7 @@ index 54db2e1..50f7f53 100644
char *p;
if ((long long) n < 0 && c == 'd')
@@ -774,7 +774,7 @@ grub_lltoa (char *str, int c, unsigned long long n)
@@ -777,7 +777,7 @@ grub_lltoa (char *str, int c, unsigned long long n)
do
{
unsigned d = (unsigned) (n & 0xf);
@ -29,7 +29,7 @@ index 54db2e1..50f7f53 100644
}
while (n >>= 4);
else
@@ -847,6 +847,7 @@ parse_printf_args (const char *fmt0, struct printf_args *args,
@@ -850,6 +850,7 @@ parse_printf_args (const char *fmt0, struct printf_args *args,
{
case 'p':
case 'x':
@ -37,7 +37,7 @@ index 54db2e1..50f7f53 100644
case 'u':
case 'd':
case 'c':
@@ -927,6 +928,7 @@ parse_printf_args (const char *fmt0, struct printf_args *args,
@@ -930,6 +931,7 @@ parse_printf_args (const char *fmt0, struct printf_args *args,
switch (c)
{
case 'x':
@ -45,7 +45,7 @@ index 54db2e1..50f7f53 100644
case 'u':
args->ptr[curn].type = UNSIGNED_INT + longfmt;
break;
@@ -1064,6 +1066,7 @@ grub_vsnprintf_real (char *str, grub_size_t max_len, const char *fmt0,
@@ -1067,6 +1069,7 @@ grub_vsnprintf_real (char *str, grub_size_t max_len, const char *fmt0,
c = 'x';
/* Fall through. */
case 'x':

View File

@ -1,7 +1,7 @@
From 3eb31d2652b19eb38b2a01bdc83540cbd67d96be Mon Sep 17 00:00:00 2001
From 2f3846a557e4ddf83f44e166d959ee460bedf8e1 Mon Sep 17 00:00:00 2001
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Date: Tue, 27 Nov 2012 17:18:53 -0200
Subject: [PATCH 075/103] DHCP client ID and UUID options added.
Subject: [PATCH 099/125] DHCP client ID and UUID options added.
---
grub-core/net/bootp.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++-----

Some files were not shown because too many files have changed in this diff Show More