This bug is alive and well as of Oct 1, 2009
First Windows install found always executed, all others revert to the first 
found occurence.

Example entry:

#!/bin/sh
# /etc/grub.d/25_hawk
# required for save_default_entry to work
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/grub/grub-mkconfig_lib

echo "Adding Fedora 11 x86 (on /dev/sda3)" >&2
cat << EOF
menuentry "Fedora 11 x86 (on /dev/sda3)" {
EOF
save_default_entry | sed -e "s/^/\t/"
cat << EOF
        set root=(hd0,3)
        chainloader +1
}
EOF

echo "Adding Windows 7 32 bit RTM (loader on /dev/sda1)" >&2
cat << EOF
menuentry "Windows 7 32 bit RTM (loader on /dev/sda1)" {
EOF
save_default_entry | sed -e "s/^/\t/"
cat << EOF
        insmod ntfs
        set root=(hd0,1)
        search --no-floppy --fs-uuid --set 964c56634c563de5
        chainloader +1
}
EOF

echo "Adding Windows 7 64 bit RC (loader on /dev/sdb1)" >&2
cat << EOF
menuentry "Windows 7 64 bit RC (loader on /dev/sdb1)" {
EOF
save_default_entry | sed -e "s/^/\t/"
cat << EOF
        insmod ntfs
        set root=(hd1,1)
        search --no-floppy --fs-uuid --set 67af6e2808c752ac
        chainloader +1
}
EOF

echo "Adding Windows 7 64 bit RTM (loader on /dev/sdb2)" >&2
cat << EOF
menuentry "Windows 7 64 bit RTM (loader on /dev/sdb2)" {
EOF
save_default_entry | sed -e "s/^/\t/"
cat << EOF
        insmod ntfs
        set root=(hd1,2)
        search --no-floppy --fs-uuid --set 7115061167664bcc
        chainloader +1
}
EOF

In all cases Windows 7 32 bit RTM is started. No 64 bit fired from
Ubuntu Karmic 32 bit install from live image this date.

-- 
grub2 Windows 7 fails to start.
https://bugs.launchpad.net/bugs/402154
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to