1 Index: os-prober/common.sh
2 ===================================================================
3 --- os-prober.orig/common.sh
4 +++ os-prober/common.sh
5 @@ -269,7 +269,7 @@ linux_mount_boot () {
6 if [ "$bindfrom" != "$tmpmnt/boot" ]; then
7 if mount --bind "$bindfrom" "$tmpmnt/boot"; then
12 debug "failed to bind-mount $bindfrom onto $tmpmnt/boot"
14 @@ -277,6 +277,15 @@ linux_mount_boot () {
16 if [ "$mounted" ]; then
18 + elif [ -e "$tmppart" ]; then
20 + boottomnt="$tmppart"
21 + elif [ -e "$tmpmnt/$tmppart" ]; then
23 + boottomnt="$tmpmnt/$tmppart"
24 + elif [ -e "/target/$tmppart" ]; then
26 + boottomnt="/target/$tmppart"
27 elif [ -e "$1" ]; then