[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#566102: Bug 566102 proposed patch



I have been suffering this issue in Mageia 2 using os-prober 1.52 and grub2 trunk. The patch in the bug report seems to be missing in linux-boot-probes/mounted/x86/40grub

The attached patch (also below) fixes the problem for me in Mageia 2.

--- linux-boot-probes/mounted/x86/40grub~ 2012-04-30 22:56:05.967611349 +0100
+++ linux-boot-probes/mounted/x86/40grub	2012-04-30 22:56:06.026619052 +0100
@@ -64,7 +64,7 @@
 				fi
 			;;
 			initrd)
-				initrd="$2"
+				initrd="$(echo "$2" | sed 's/(.*)//')"
 				# Initrd same.
 				if [ "$partition" != "$bootpart" ]; then
 					initrd="/boot$initrd"

Please include this in future versions if it has no side effects,
Thanks,
Barry
--- linux-boot-probes/mounted/x86/40grub~	2012-04-30 22:56:05.967611349 +0100
+++ linux-boot-probes/mounted/x86/40grub	2012-04-30 22:56:06.026619052 +0100
@@ -64,7 +64,7 @@
 				fi
 			;;
 			initrd)
-				initrd="$2"
+				initrd="$(echo "$2" | sed 's/(.*)//')"
 				# Initrd same.
 				if [ "$partition" != "$bootpart" ]; then
 					initrd="/boot$initrd"

Reply to: