Blame SOURCES/0011-Set-correct-boot-partition-906886.patch

2e96e6
From f21658a98e0e0456c0dfb6852cb4bbdda9298647 Mon Sep 17 00:00:00 2001
2e96e6
From: "H.J. Lu" <hongjiu.lu@intel.com>
2e96e6
Date: Tue, 5 Feb 2013 21:47:40 +0330
2e96e6
Subject: [PATCH 11/18] Set correct boot partition (#906886)
2e96e6
2e96e6
If the boot and root are mounted then os-prober was selecting
2e96e6
the wrong boot partition.
2e96e6
2e96e6
Resolves: rhbz#906886
2e96e6
---
2e96e6
 common.sh         | 2 +-
2e96e6
 linux-boot-prober | 2 +-
2e96e6
 2 files changed, 2 insertions(+), 2 deletions(-)
2e96e6
2e96e6
diff --git a/common.sh b/common.sh
2e96e6
index 52b0d2b..1dbf7a3 100644
2e96e6
--- a/common.sh
2e96e6
+++ b/common.sh
2e96e6
@@ -123,7 +123,7 @@ parse_proc_mounts () {
2e96e6
 		set -f
2e96e6
 		set -- $line
2e96e6
 		set +f
2e96e6
-		printf '%s %s %s\n' "$(mapdevfs "$1")" "$2" "$3"
2e96e6
+		printf '%s %s %s %s\n' "$(mapdevfs "$1")" "$2" "$3" "$1"
2e96e6
 	done
2e96e6
 }
2e96e6
 
2e96e6
diff --git a/linux-boot-prober b/linux-boot-prober
2e96e6
index 505c2fd..57bf245 100755
2e96e6
--- a/linux-boot-prober
2e96e6
+++ b/linux-boot-prober
2e96e6
@@ -167,7 +167,7 @@ else
2e96e6
 			bootpart="${mountboot%% *}"
2e96e6
 			bootmounted="${mountboot#* }"
2e96e6
 		else
2e96e6
-			bootpart="$partition"
2e96e6
+			bootpart="$(grep " $mpoint/boot " "$OS_PROBER_TMP/mounted-map" | head -n1 | cut -d " " -f 4)"
2e96e6
 			bootmounted=0
2e96e6
 		fi
2e96e6
 		for test in /usr/lib/linux-boot-probes/mounted/*; do
2e96e6
-- 
2e96e6
2.5.5
2e96e6