[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Cope with Windows 7 in os-prober output
From: |
Colin Watson |
Subject: |
[PATCH] Cope with Windows 7 in os-prober output |
Date: |
Mon, 14 Sep 2009 12:27:06 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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 <address@hidden>
* 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 address@hidden
- [PATCH] Cope with Windows 7 in os-prober output,
Colin Watson <=