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

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