stages: 2/01-busybox: update .config
[dragora.git] / patches / os-prober / os-prober-mounted-partitions-fix.patch
blobaecfc9f971c8b5ba4c41bed328934f9242d1a455
1 Index: os-prober/common.sh
2 ===================================================================
3 --- os-prober.orig/common.sh
4 +++ os-prober/common.sh
5 @@ -146,7 +146,7 @@ parse_proc_mounts () {
6 set -f
7 set -- $line
8 set +f
9 - printf '%s %s %s\n' "$(mapdevfs "$1")" "$2" "$3"
10 + printf '%s %s %s %s\n' "$(mapdevfs "$1")" "$2" "$3" "$1"
11 done
14 Index: os-prober/linux-boot-prober
15 ===================================================================
16 --- os-prober.orig/linux-boot-prober
17 +++ os-prober/linux-boot-prober
18 @@ -167,7 +167,7 @@ else
19 bootpart="${mountboot%% *}"
20 bootmounted="${mountboot#* }"
21 else
22 - bootpart="$partition"
23 + bootpart="$(grep " $mpoint/boot " "$OS_PROBER_TMP/mounted-map" | head -n1 | cut -d " " -f 4)"
24 bootmounted=0
26 for test in /usr/lib/linux-boot-probes/mounted/*; do