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

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