stages: 2/01-busybox: update .config
[dragora.git] / patches / os-prober / os-prober-grub2-parsefix.patch
blob0ef8bdafacceab2340f24738ee95fde92f4df39f
1 Index: os-prober-1.58/linux-boot-probes/mounted/common/40grub2
2 ===================================================================
3 --- os-prober-1.58.orig/linux-boot-probes/mounted/common/40grub2
4 +++ os-prober-1.58/linux-boot-probes/mounted/common/40grub2
5 @@ -77,7 +77,7 @@ parse_grub_menu () {
6 ignore_item=1
7 fi
8 ;;
9 - linux)
10 + linux*)
11 # Hack alert: sed off any (hdn,n) but
12 # assume the kernel is on the same
13 # partition.
14 @@ -90,7 +90,7 @@ parse_grub_menu () {
15 kernel="/boot$kernel"
18 - initrd)
19 + initrd*)
20 initrd="$(echo "$2" | sed 's/(.*)//')"
21 # Initrd same.
22 if [ "$partition" != "$bootpart" ]; then