From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TIe8U-0002F5-7D for mharc-grub-devel@gnu.org; Mon, 01 Oct 2012 07:26:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIe8N-0002El-6e for grub-devel@gnu.org; Mon, 01 Oct 2012 07:26:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIe8H-00022E-2E for grub-devel@gnu.org; Mon, 01 Oct 2012 07:25:59 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:41233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIe8G-00021w-Lz for grub-devel@gnu.org; Mon, 01 Oct 2012 07:25:52 -0400 Received: by lagp5 with SMTP id p5so1855596lag.0 for ; Mon, 01 Oct 2012 04:25:51 -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=0cZBg7xsrmzNPu5ExTvIGUG/WoXTXQ71aTTIUUF6N1Q=; b=sZLWL/r7ZhwNX/HJ/v7WYHobCsBSkSe1R8ZOZ/qKsoaDmEeCIo800Yydbio7xpgj+R lMx/CKpZmI9gLGLp8Kz/4v61Cz1MCrfDMo9rZ2wyTM1MHMYLxGbrO8yBJrnKpRmwb/fG HB2PQ+MnPqyVU0h5ENR+CX/VkMN5pPAysN5o3NZ9n/Ldv6O+o9wvOjLOJuvxi30K+NUn DUWR3OnRMLVelmx2NGHF855mIRtad2xDa6Xl6soik98K1pvxRAmeirYDW4r55i8PMImR PJ9nrSHX7nH+vY8c6WKIqp85AMgPPIuWkTxIuTDxZnMSw2lrycaNWzJKbB+ESjS8QoVx mD8w== MIME-Version: 1.0 Received: by 10.112.40.73 with SMTP id v9mr5160797lbk.36.1349090751050; Mon, 01 Oct 2012 04:25:51 -0700 (PDT) Received: by 10.112.32.74 with HTTP; Mon, 1 Oct 2012 04:25:50 -0700 (PDT) Received: by 10.112.32.74 with HTTP; Mon, 1 Oct 2012 04:25:50 -0700 (PDT) In-Reply-To: <1348931070.2008.14.camel@opensuse.site> References: <1348931070.2008.14.camel@opensuse.site> Date: Mon, 1 Oct 2012 13:25:50 +0200 Message-ID: Subject: Re: [RFC] Support for UEFI ESP in os-prober From: "Vladimir 'phcoder' Serbinenko" To: The development of GNU GRUB Content-Type: multipart/alternative; boundary=e0cb4efe3412fc75f804cafdaae7 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 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: Mon, 01 Oct 2012 11:26:05 -0000 --e0cb4efe3412fc75f804cafdaae7 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I haven=91t had time to view in details but os-prober isn=91t managed by us= but by debian-boot team so you need to contact them. Also I=91d prefer more of detection to be done on runtime than it=91s done in current model On Sep 29, 2012 5:04 PM, "Andrey Borzenkov" wrote: > 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 > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > > --e0cb4efe3412fc75f804cafdaae7 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable

I haven=91t had time to view in details but os-prober isn=91t managed by= us but by debian-boot team so you need to contact them. Also I=91d prefer = more of detection to be done on runtime than it=91s done in current model

On Sep 29, 2012 5:04 PM, "Andrey Borzenkov&= quot; <arvidjaar@gmail.com>= ; wrote:
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

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

--e0cb4efe3412fc75f804cafdaae7--