Blame SOURCES/0077-Improve-LVM-logical_volumes-string-matching.patch

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