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

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