From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PatTx-0007za-TO for mharc-grub-devel@gnu.org; Thu, 06 Jan 2011 12:18:38 -0500 Received: from [140.186.70.92] (port=42297 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PatTv-0007x7-Az for grub-devel@gnu.org; Thu, 06 Jan 2011 12:18:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PatTs-0005Bw-Ne for grub-devel@gnu.org; Thu, 06 Jan 2011 12:18:35 -0500 Received: from ausc60pc101.us.dell.com ([143.166.85.206]:4899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PatTs-0005Bf-KM for grub-devel@gnu.org; Thu, 06 Jan 2011 12:18:32 -0500 X-Loopcount0: from 10.9.160.253 Message-ID: <4D25F965.6040909@Dell.com> Date: Thu, 06 Jan 2011 11:18:29 -0600 From: Mario Limonciello User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= References: <4D24A00C.1010100@Dell.com> <4D25D571.2050407@gmail.com> In-Reply-To: <4D25D571.2050407@gmail.com> Content-Type: multipart/alternative; boundary="------------050708090306020905080709" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: "grub-devel@gnu.org" Subject: Re: [PATCH] Explicitly build msdos partition support into EFI executables X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Thu, 06 Jan 2011 17:18:36 -0000 This is a multi-part message in MIME format. --------------050708090306020905080709 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Vladimir: On 01/06/2011 08:45 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 01/05/2011 05:45 PM, Mario Limonciello wrote: >> Hi: >> >> Currently EFI executables don't include part_msdos or vfat support by >> default. This means that EFI executables can only be launched >> directly from ISO9660 filesystems. The attached patch explicitly adds >> part_msdos and vfat so that the rest of the GRUB files can be found on >> other devices, such as USB keys. >> > grub-mkrescue is only for creating ISOs. If you need to install to HDD > please use grub-install. For custom EFI executables use grub-mkimage The reason for adding this to the EFI executable on ISOs is so that those same ISOs can be installed to a VFAT USB stick and that USB stick bootable via EFI. The particular use case i'm thinking about is Ubuntu's usb-creator. It extracts the ISO directly to the stick. If the EFI executable contains these two modules, no additional work is necessary. -- *Mario Limonciello* Linux Engineer *Dell*| OS Engineering --------------050708090306020905080709 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Vladimir:

On 01/06/2011 08:45 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
On 01/05/2011 05:45 PM, Mario Limonciello wrote:
Hi:

Currently EFI executables don't include part_msdos or vfat support by
default.  This means that EFI executables can only be launched
directly from ISO9660 filesystems.  The attached patch explicitly adds
part_msdos and vfat so that the rest of the GRUB files can be found on
other devices, such as USB keys.

grub-mkrescue is only for creating ISOs. If you need to install to HDD
please use grub-install. For custom EFI executables use grub-mkimage
The reason for adding this to the EFI executable on ISOs is so that those same ISOs can be installed to a VFAT USB stick and that USB stick bootable via EFI.  The particular use case i'm thinking about is Ubuntu's usb-creator. It extracts the ISO directly to the stick.  If the EFI executable contains these two modules, no additional work is necessary.

--
Mario Limonciello
Linux Engineer
Dell | OS Engineering
--------------050708090306020905080709--