recipes: libs/libexecinfo: Do not strip references from libraries
[dragora.git] / patches / os-prober / os-prober-bootpart-name-fix.patch
blob40a909da3f46af545fe20a51c8e5b11c98c92422
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
8 mounted=1
9 - bootpart="$1"
10 + bootpart="$tmppart"
11 else
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
19 + bootpart="$tmppart"
20 + boottomnt="$tmppart"
21 + elif [ -e "$tmpmnt/$tmppart" ]; then
22 + bootpart="$tmppart"
23 + boottomnt="$tmpmnt/$tmppart"
24 + elif [ -e "/target/$tmppart" ]; then
25 + bootpart="$tmppart"
26 + boottomnt="/target/$tmppart"
27 elif [ -e "$1" ]; then
28 bootpart="$1"
29 boottomnt="$1"