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

Bug#566102: same on os-prober 1.39. Patch proposed



I encounter exactly the same problem on my computer.
fdisk -l :
Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sda1               1       12748   102398278+  83  Linux
/dev/sda2   *       65071       65077       56227+   7  HPFS/NTFS
/dev/sda3           65078       77825   102398310    7  HPFS/NTFS
/dev/sda4           12749       65070   420275835+   5  Etendue
/dev/sda5           12749       13270     4192933+  82  Linux swap / Solaris
/dev/sda6           13271       62639   396551758   83  Linux
/dev/sda7           62639       63855     9764864   83  Linux
/dev/sda8           63856       64462     4875696   83  Linux
/dev/sda9           64463       65069     4875696   83  Linux

I've tracked down the os-prober whole process and found a correction in 40grub. 
Diff patch :
% diff -up 40grub.orig 40grub
--- 40grub.orig	2010-10-12 10:05:27.546701985 +0200
+++ 40grub	2010-10-12 10:01:56.962701915 +0200
@@ -62,7 +62,7 @@ parse_grub_menu () {
 				fi
 			;;
 			initrd)
-				initrd="$2"
+				initrd="$(echo "$2" | sed 's/(.*)//')"
 				# Initrd same.
 				if [ "$partition" != "$bootpart" ]; then
 					initrd="/boot$initrd"

I also attach the whole patched 40grub.

Cheers
farfouille


Attachment: 40grub
Description: application/shellscript


Reply to: