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

6b3c76
From 6539eeb60268e646ca9f99a6ba8967c8fcb55807 Mon Sep 17 00:00:00 2001
a85e8e
From: Colin Watson <cjwatson@ubuntu.com>
a85e8e
Date: Thu, 10 Apr 2014 14:42:41 +0100
6b3c76
Subject: [PATCH 077/261] 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
---
d41074
 ChangeLog            | 5 +++++
6b3c76
 grub-core/disk/lvm.c | 4 ++--
a85e8e
 2 files changed, 7 insertions(+), 2 deletions(-)
a85e8e
6b3c76
diff --git a/ChangeLog b/ChangeLog
6b3c76
index 50d929162..7f0c57dc0 100644
6b3c76
--- a/ChangeLog
6b3c76
+++ b/ChangeLog
6b3c76
@@ -1,3 +1,8 @@
6b3c76
+2014-04-10  Colin Watson  <cjwatson@ubuntu.com>
6b3c76
+
6b3c76
+	* grub-core/disk/lvm.c (grub_lvm_detect): Search for
6b3c76
+	"logical_volumes" block a little more accurately.
6b3c76
+
6b3c76
 2014-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
6b3c76
 
6b3c76
 	* grub-core/lib/syslinux_parse.c: Fix timeout quoting.
a85e8e
diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c
6b3c76
index 483c17eb5..862a9664f 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)
6b3c76
-- 
6b3c76
2.13.5
6b3c76