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

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