Blame SOURCES/os-prober-mounted-partitions-fix.patch

c62eab
diff -up os-prober-1.57/common.sh.mounted-partitions-fix os-prober-1.57/common.sh
c62eab
--- os-prober-1.57/common.sh.mounted-partitions-fix	2013-02-05 20:58:03.041289214 +0330
c62eab
+++ os-prober-1.57/common.sh	2013-02-05 20:58:03.044289177 +0330
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
 
c62eab
diff -up os-prober-1.57/linux-boot-prober.mounted-partitions-fix os-prober-1.57/linux-boot-prober
c62eab
--- os-prober-1.57/linux-boot-prober.mounted-partitions-fix	2013-02-05 20:58:03.000000000 +0330
c62eab
+++ os-prober-1.57/linux-boot-prober	2013-02-05 20:58:54.364647584 +0330
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