Christian Franke wrote:
This change is already included in Cygwin package grub-1.98-2.
-
+ test -z "$needmap" || cat<<EOF
+ drivemap -s (hd0) \$root
+EOF
You can't be sure on script runtime that C: is on hd0. Ironically especially
when drivemap is used.
But drivemap -s (hd0) (hd0) is a nop, so no harm done.
On the other hand Vista and 7 are incompatible with drivemap so you have to
skip drivemap on those systems. Look at 30_os-prober.in:
case ${LONGNAME} in
Windows\ Vista*|Windows\ 7*)
;;
*)
cat<< EOF
drivemap -s (hd0) \${root}
EOF
;;
esac