Skip to contentSkip to conversation

Cope with Windows 7 in os-prober output

PATCH In review Colin Watson 1 participant 2 messages Sep 14, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cope with Windows 7 in os-prober output

I recently fixed
https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/393565 in os-prober svn. GRUB needs this patch to handle the new output correctly.

2009-09-14 Colin Watson <[email protected]>

* util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober output.

grub.d/30_os-prober.in +8 -3
Index: util/grub.d/30_os-prober.in
===================================================================
@@ -57,11 +57,16 @@ menuentry "${LONGNAME} (on ${DEVICE})" {
 EOF
       prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
 
-      if [ "${LONGNAME}" != "Windows Vista (loader)" ] ; then
-        cat << EOF
+      case ${LONGNAME} in
+	Windows\ Vista*|Windows\ 7*)
+	;;
+	*)
+	  cat << EOF
 	drivemap -s (hd0) \${root}
 EOF
-      fi
+	;;
+      esac
+
       cat <<EOF
 	chainloader +1
 }
Signature · 1 line
Colin Watson                                       [[email protected]]