2015-10-20 20:38:28 +00:00
|
|
|
Index: os-prober/common.sh
|
|
|
|
===================================================================
|
|
|
|
--- os-prober.orig/common.sh
|
|
|
|
+++ os-prober/common.sh
|
|
|
|
@@ -269,7 +269,7 @@ linux_mount_boot () {
|
2013-02-05 18:17:40 +00:00
|
|
|
if [ "$bindfrom" != "$tmpmnt/boot" ]; then
|
|
|
|
if mount --bind "$bindfrom" "$tmpmnt/boot"; then
|
|
|
|
mounted=1
|
|
|
|
- bootpart="$1"
|
|
|
|
+ bootpart="$tmppart"
|
|
|
|
else
|
|
|
|
debug "failed to bind-mount $bindfrom onto $tmpmnt/boot"
|
|
|
|
fi
|
2015-10-20 20:38:28 +00:00
|
|
|
@@ -277,6 +277,15 @@ linux_mount_boot () {
|
2013-02-05 18:17:40 +00:00
|
|
|
fi
|
|
|
|
if [ "$mounted" ]; then
|
|
|
|
:
|
|
|
|
+ elif [ -e "$tmppart" ]; then
|
|
|
|
+ bootpart="$tmppart"
|
|
|
|
+ boottomnt="$tmppart"
|
|
|
|
+ elif [ -e "$tmpmnt/$tmppart" ]; then
|
|
|
|
+ bootpart="$tmppart"
|
|
|
|
+ boottomnt="$tmpmnt/$tmppart"
|
|
|
|
+ elif [ -e "/target/$tmppart" ]; then
|
|
|
|
+ bootpart="$tmppart"
|
|
|
|
+ boottomnt="/target/$tmppart"
|
|
|
|
elif [ -e "$1" ]; then
|
|
|
|
bootpart="$1"
|
|
|
|
boottomnt="$1"
|