Blame SOURCES/os-prober-bootpart-name-fix.patch

008853
Index: os-prober/common.sh
008853
===================================================================
008853
--- os-prober.orig/common.sh
008853
+++ os-prober/common.sh
008853
@@ -269,7 +269,7 @@ linux_mount_boot () {
008853
 				if [ "$bindfrom" != "$tmpmnt/boot" ]; then
008853
 					if mount --bind "$bindfrom" "$tmpmnt/boot"; then
008853
 						mounted=1
008853
-						bootpart="$1"
008853
+						bootpart="$tmppart"
008853
 					else
008853
 						debug "failed to bind-mount $bindfrom onto $tmpmnt/boot"
008853
 					fi
008853
@@ -277,6 +277,15 @@ linux_mount_boot () {
008853
 			fi
008853
 			if [ "$mounted" ]; then
008853
 				:
008853
+			elif [ -e "$tmppart" ]; then
008853
+				bootpart="$tmppart"
008853
+				boottomnt="$tmppart"
008853
+			elif [ -e "$tmpmnt/$tmppart" ]; then
008853
+				bootpart="$tmppart"
008853
+				boottomnt="$tmpmnt/$tmppart"
008853
+			elif [ -e "/target/$tmppart" ]; then
008853
+				bootpart="$tmppart"
008853
+				boottomnt="/target/$tmppart"
008853
 			elif [ -e "$1" ]; then
008853
 				bootpart="$1"
008853
 				boottomnt="$1"