summarylogtreecommitdiffstats
path: root/os-prober-grub2-multiple-images.patch
diff options
context:
space:
mode:
authorLibrewish2020-10-25 15:57:24 +0530
committerLibrewish2020-10-25 15:57:24 +0530
commit5271f23d8ac140f2db82697b645c38a41ccc78ac (patch)
treec6b82c2b8538c1bdf9de3f43e4d1e88bb0fb4f61 /os-prober-grub2-multiple-images.patch
downloadaur-5271f23d8ac140f2db82697b645c38a41ccc78ac.tar.gz
update
Diffstat (limited to 'os-prober-grub2-multiple-images.patch')
-rw-r--r--os-prober-grub2-multiple-images.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/os-prober-grub2-multiple-images.patch b/os-prober-grub2-multiple-images.patch
new file mode 100644
index 000000000000..fe2debfe22cf
--- /dev/null
+++ b/os-prober-grub2-multiple-images.patch
@@ -0,0 +1,34 @@
+diff -rupN os-prober.old/linux-boot-probes/mounted/common/40grub2 os-prober/linux-boot-probes/mounted/common/40grub2
+--- os-prober.old/linux-boot-probes/mounted/common/40grub2 2015-07-30 15:47:15.487062200 +0200
++++ os-prober/linux-boot-probes/mounted/common/40grub2 2015-07-30 15:53:39.593770984 +0200
+@@ -78,10 +78,10 @@ parse_grub_menu () {
+ fi
+ ;;
+ initrd*)
+- initrd="$(echo "$2" | sed 's/(.*)//')"
+- # Initrd same.
+ if [ "$partition" != "$bootpart" ]; then
+- initrd="/boot$initrd"
++ initrd="$(echo "$line" | sed 's/initrd//;s/\t//;s|/|/boot/|g;s/(.*)//')"
++ else
++ initrd="$(echo "$line" | sed 's/initrd//;s/\t//;s/(.*)//')"
+ fi
+ ;;
+ "}")
+diff -rupN os-prober.old/linux-boot-probes/mounted/x86/40grub os-prober/linux-boot-probes/mounted/x86/40grub
+--- os-prober.old/linux-boot-probes/mounted/x86/40grub 2015-07-30 15:47:15.487062200 +0200
++++ os-prober/linux-boot-probes/mounted/x86/40grub 2015-07-30 15:57:00.508864273 +0200
+@@ -66,10 +66,10 @@ parse_grub_menu () {
+ initrd)
+ # Hack alert take 2: sed off any (hdn,n)
+ # See #566102
+- initrd="$(echo "$2" | sed 's/(.*)//')"
+- # Initrd same.
+ if [ "$partition" != "$bootpart" ]; then
+- initrd="/boot$initrd"
++ initrd="$(echo "$line" | sed 's/initrd//;s/\t//;s|/|/boot/|g;s/(.*)//')"
++ else
++ initrd="$(echo "$line" | sed 's/initrd//;s/\t//;s/(.*)//')"
+ fi
+ ;;
+ boot)