2009-09-14 Colin Watson <cjwatson@ubuntu.com>

* util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
	output.
This commit is contained in:
cjwatson 2009-09-14 11:32:00 +00:00
parent 5653217923
commit d52109a7a2
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2009-09-14 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
output.
2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
* configure.ac: Remove --enable-grub-pe2elf. Only build

View File

@ -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
}