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  <cjwat...@ubuntu.com>

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

Index: util/grub.d/30_os-prober.in
===================================================================
--- util/grub.d/30_os-prober.in (revision 2593)
+++ util/grub.d/30_os-prober.in (working copy)
@@ -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
 }

-- 
Colin Watson                                       [cjwat...@ubuntu.com]


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to