Bug#679817: grub-common: broken chainloader entry in grub.cfg for windows systems in GPT partitioned disks

Ghost Shell another.ghost.in.the.shell at gmail.com
Sun Jul 1 19:25:15 UTC 2012


Package: grub-common
Version: 1.99-22.1
Severity: normal

Dear Maintainer,


Everytime grub-update is ran then a new grub.cfg is generated. However, the windows entry is broken for systems using GPT partitions.
It is not possible to boot to windows from grub boot menu, unless the generated grub.cfg is manually fixed.

The script responsible for generating the boot options for others OSs is /etc/grub.d/30_os-prober (which is part of this package).
I'm using grub-efi on a clean wheezy install.


The resulting entry in grub.cfg is the following:
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
    insmod part_gpt
    insmod ntfs
    set root='(hd0,gpt3)'
    search --no-floppy --fs-uuid --set=root 1A62308062305F11
    chainloader +1
}
 
The expected entry in grub.cfg would be (and this one works):
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
    insmod part_gpt
    insmod ntfs
    insmod fat  
    insmod chain
    set root='(hd0,gpt3)'
    search --no-floppy --fs-uuid --set=root 1A62308062305F11
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
 
There is still the issue of the recovery partition, which I suspect the efi file to be:
/EFI/Microsoft/Boot/bootmgr.efi   
But I haven't tested this one yet.


Thanks


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  gettext-base        0.18.1.1-9
ii  libc6               2.13-33
ii  libdevmapper1.02.1  2:1.02.74-4
ii  libfreetype6        2.4.9-1
ii  libfuse2            2.9.0-2
ii  zlib1g              1:1.2.7.dfsg-13

Versions of packages grub-common recommends:
ii  os-prober  1.53

Versions of packages grub-common suggests:
ii  desktop-base   6.0.7
pn  grub-emu       <none>
pn  multiboot-doc  <none>
pn  xorriso        <none>

-- no debconf information





More information about the Pkg-grub-devel mailing list