• [^] # Re: efibootmgr / rEFInd

    Posté par . En réponse au journal UEFI, je chie ton nom. Évalué à 10.

    Enorme, ça fonctionne pour moi aussi ! J'avais pensé à un tas de bidouilles mais pas celle là. Merci à toi.
    L'UEFI trouve un truc ressemblant à Windows et il le boot sans se poser de question. Sauf que c'est grub qu'il boot.
    En bootant sur la copie, ça n'a pas l'air de gêner Windows que son loader ait été modifié. S'il ne voit pas de bootmgfw.efi il gueule mais si on lui met autre chose à la place, il ne voit que du feu. J'adore.

    En résumé, côté Linux:

    sudo mv /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.ms.efi
    sudo cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi

    Et dans /etc/grub.d/40_custom j'ai mis ça (copié-collé de ce que génère os-prober pour Windows):

    menuentry "Windows 7" --class windows --class os {
    insmod part_gpt
    insmod fat
    set root='hd0,gpt1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 0CFC-F13A
    else
    search --no-floppy --fs-uuid --set=root 0CFC-F13A
    fi
    chainloader /EFI/Microsoft/Boot/bootmgfw.ms.efi
    }