From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TIQAA-0000hs-Sc for mharc-grub-devel@gnu.org; Sun, 30 Sep 2012 16:30:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIQA8-0000hA-2Y for grub-devel@gnu.org; Sun, 30 Sep 2012 16:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIQA6-00007i-QC for grub-devel@gnu.org; Sun, 30 Sep 2012 16:30:52 -0400 Received: from mail-ia0-f169.google.com ([209.85.210.169]:42392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIQA6-00007W-KG for grub-devel@gnu.org; Sun, 30 Sep 2012 16:30:50 -0400 Received: by iakh37 with SMTP id h37so287339iak.0 for ; Sun, 30 Sep 2012 13:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fQbcoybh0QeU1FK1xe5/5wnZh+MYODAsVumePsomlMA=; b=bZaZnBSpFNYE6ePjiR4dnULtHBarnoJBgbAtYEMuiqZbxhNTTfEMRybPDj3ai4fpKt VlKJ3He8e6ToBvmmheS5TGfMr5eWVqlGu7z2sgZ+TZKKGucE7I3baAUwYC3FWKl7n3g6 Ld13kjKTWXaEYPLcphQapC6YtK57qc2w+FK92qFzwhAm3wJVaxoQRdBAbt1G0OUBvasW kHoiNnGhxp4ySDW/9n9EnhY9+0y/EhcEeTeDov5VGOU96+WNt5mMhav3n95JtYMsAU83 wx/XiFmtR7Yde/l/9/IOOuLFpmkojV2CVTwWuo9gxQE6evhVq3fwNdxSRbbq1g2KwtNy rztg== MIME-Version: 1.0 Received: by 10.50.196.193 with SMTP id io1mr3974462igc.59.1349037049205; Sun, 30 Sep 2012 13:30:49 -0700 (PDT) Received: by 10.64.129.132 with HTTP; Sun, 30 Sep 2012 13:30:49 -0700 (PDT) In-Reply-To: <1348931070.2008.14.camel@opensuse.site> References: <1348931070.2008.14.camel@opensuse.site> Date: Sun, 30 Sep 2012 22:30:49 +0200 Message-ID: Subject: Re: [RFC] Support for UEFI ESP in os-prober From: "yannubuntu@gmail.com" To: The development of GNU GRUB Content-Type: multipart/alternative; boundary=14dae93411f51b541b04caf12af9 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2012 20:30:53 -0000 --14dae93411f51b541b04caf12af9 Content-Type: text/plain; charset=ISO-8859-1 2012/9/29 Andrey Borzenkov > Attached are suggested implementation for UEFI support. Because ESP can > contain arbitrary number of boot entries, it is itself implemented as > extensible framework. > > 1. /usr/lib/os-prober/mounted/05efi > > Makes basic plausibility checks (FAT and /EFI exists) and calls scripts > from /usr/lib/os-prober/mounted/efi/* to perform OS detection. Returns > detected bootladers in the form ${device}@${path}:${long}:${short}:efi > > 2. patch for /etc/grub.d/30_os-prober > > creates "chainloader ${path}" entry from the above > > 3. Patch for /usr/lib/os-prober/mounted/20microsoft > > It seems that on UEFI systems Windows sometimes installs both legacy and > UEFI bootloader. In this case os-prober adds menu entries for legacy > Windows boot which do not work from within UEFI GRUB bootloader. Patch > detects UEFI platform and skips running there. > > 4. /usr/lib/os-prober/mounted/efi/20microsoft > > Suggested implementation for Microsoft bootloader. We have no way to > create entries for individual OSes here (this would involve parsing BCD > store at the very least), so entry is titled as "Windows Boot Manager", > the same as is automatically added to UEFI boot menu. > > This is successfully tested on VM with Windows 7/openSUSE 12.2 dual > boot. As openSUSE 12.2 comes with GRUB2 as default bootloader, this > issue seems to be hit by quite a number of users. > > Comments? > > -andrey > Thanks Andrey for working on this. - I confirm that Windows sometimes installs both Legacy and UEFI bootloader. Example: http://paste.ubuntu.com/1248333 - For information, here is a report you may be interested in: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1024383 Regards Yann --14dae93411f51b541b04caf12af9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2012/9/29 Andrey Borzenkov <arvidjaar= @gmail.com>
Attached are suggested implementation for UEFI support. Because ESP can
contain arbitrary number of boot entries, it is itself implemented as
extensible framework.

1. /usr/lib/os-prober/mounted/05efi

Makes basic plausibility checks (FAT and /EFI exists) and calls scripts
from /usr/lib/os-prober/mounted/efi/* to perform OS detection. Returns
detected bootladers in the form ${device}@${path}:${long}:${short}:efi

2. patch for /etc/grub.d/30_os-prober

creates "chainloader ${path}" entry from the above

3. Patch for /usr/lib/os-prober/mounted/20microsoft

It seems that on UEFI systems Windows sometimes installs both legacy and UEFI bootloader. In this case os-prober adds menu entries for legacy
Windows boot which do not work from within UEFI GRUB bootloader. Patch
detects UEFI platform and skips running there.

4. /usr/lib/os-prober/mounted/efi/20microsoft

Suggested implementation for Microsoft bootloader. We have no way to
create entries for individual OSes here (this would involve parsing BCD
store at the very least), so entry is titled as "Windows Boot Manager&= quot;,
the same as is automatically added to UEFI boot menu.

This is successfully tested on VM with Windows 7/openSUSE 12.2 dual
boot. As openSUSE 12.2 comes with GRUB2 as default bootloader, this
issue seems to be hit by quite a number of users.

Comments?

-andrey

Thanks Andrey for working on= this.
- I confirm that Windows sometimes installs both Legacy and UEFI = bootloader.
Example: http://= paste.ubuntu.com/1248333
- For information, here is a report you may be interested in:
https://bugs= .launchpad.net/ubuntu/+source/grub2/+bug/1024383

Regards
Yann=
=A0

--14dae93411f51b541b04caf12af9--