From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Paq4V-0006wl-LC for mharc-grub-devel@gnu.org; Thu, 06 Jan 2011 08:40:07 -0500 Received: from [140.186.70.92] (port=46257 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaWU6-00071o-Ck for grub-devel@gnu.org; Wed, 05 Jan 2011 11:45:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaWU4-0004uB-GO for grub-devel@gnu.org; Wed, 05 Jan 2011 11:45:14 -0500 Received: from ausxippc101.us.dell.com ([143.166.85.207]:6407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaWU4-0004tZ-D0 for grub-devel@gnu.org; Wed, 05 Jan 2011 11:45:12 -0500 X-Loopcount0: from 10.9.160.253 Message-ID: <4D24A00C.1010100@Dell.com> Date: Wed, 05 Jan 2011 10:45:00 -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: grub-devel@gnu.org Content-Type: multipart/mixed; boundary="------------050607060501090203090101" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Thu, 06 Jan 2011 08:40:05 -0500 Subject: [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: Wed, 05 Jan 2011 16:45:19 -0000 This is a multi-part message in MIME format. --------------050607060501090203090101 Content-Type: multipart/alternative; boundary="------------010002090402030702080703" --------------010002090402030702080703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. Thanks, -- *Mario Limonciello* Linux Engineer *Dell*| OS Engineering --------------010002090402030702080703 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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.

Thanks,

--
Mario Limonciello
Linux Engineer
Dell | OS Engineering
--------------010002090402030702080703-- --------------050607060501090203090101 Content-Type: text/x-patch; name="efi_fat32.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="efi_fat32.patch" === modified file 'ChangeLog' --- ChangeLog 2011-01-05 11:23:06 +0000 +++ ChangeLog 2011-01-05 16:41:49 +0000 @@ -1,3 +1,8 @@ +2011-01-06 Mario Limonciello + + * util/grub-mkrescue.in: Explicitly build part_msdos and vfat into + efi executables. + 2011-01-05 Vladimir Serbinenko Run terminfo_cls on initing terminfo output to clear the screen and === modified file 'util/grub-mkrescue.in' --- util/grub-mkrescue.in 2010-10-18 20:50:01 +0000 +++ util/grub-mkrescue.in 2011-01-05 16:41:49 +0000 @@ -283,9 +283,9 @@ mkdir -p "${efi_dir}/efi/boot" # build bootx64.efi - make_image "${efi64_dir}" x86_64-efi "${efi_dir}"/efi/boot/bootx64.efi "" + make_image "${efi64_dir}" x86_64-efi "${efi_dir}"/efi/boot/bootx64.efi "part_msdos fat" # build bootia32.efi - make_image "${efi32_dir}" i386-efi "${efi_dir}"/efi/boot/bootia32.efi "" + make_image "${efi32_dir}" i386-efi "${efi_dir}"/efi/boot/bootia32.efi "part_msdos fat" mformat -C -f 2880 -L 16 -i "${iso9660_dir}"/efi.img :: mcopy -s -i "${iso9660_dir}"/efi.img ${efi_dir}/efi ::/ --------------050607060501090203090101-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Paqpo-00009y-PJ for mharc-grub-devel@gnu.org; Thu, 06 Jan 2011 09:29:00 -0500 Received: from [140.186.70.92] (port=52265 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Paqpj-0008Sf-Ix for grub-devel@gnu.org; Thu, 06 Jan 2011 09:28:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Paqp3-00030E-Et for grub-devel@gnu.org; Thu, 06 Jan 2011 09:28:15 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:59571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Paqp3-0002za-BZ for grub-devel@gnu.org; Thu, 06 Jan 2011 09:28:13 -0500 Received: by iyj17 with SMTP id 17so16764317iyj.0 for ; Thu, 06 Jan 2011 06:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=/lZMUxyyoqdME5BBYcmDRfoVl2vSyrT2kwDPtsy7DmU=; b=C+YW0K2KZ1CSCq0TvhEkFq3WR7i6QBO+4nGHTD/mb93hlW8+jXirZOa1fcwataZRa+ OyHMhV82UIZU7+3ANjWkEO1kavZ5btRng43q921btM8Zh4vwhk89vgi+1OEOnPOHIRKW 6S5C/SM8xoO9iIdqVsEajutHGJbL/OkDaF+yY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=SygdySxOeMXBrmJOhZr/2ZLhLQYr3vvpIZ/YaldxMtQtNH+zQjTJWfYpd7vrYHOmun 4+RVdgDhgxyDY0BZ/ILKpgV8J6pnFGHBH5eeePM6RWI585RyyVjmTyOk23Zp3NEwo1xs YoFA5QH/W81Z+RU1zdlD2JTDXsutEjkQd5bSg= Received: by 10.42.217.68 with SMTP id hl4mr2622205icb.181.1294324091664; Thu, 06 Jan 2011 06:28:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.173.68 with HTTP; Thu, 6 Jan 2011 06:27:51 -0800 (PST) In-Reply-To: <4D24A00C.1010100@Dell.com> References: <4D24A00C.1010100@Dell.com> From: "KESHAV P.R." Date: Thu, 6 Jan 2011 19:57:51 +0530 Message-ID: To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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 14:28:59 -0000 On Wed, Jan 5, 2011 at 22:15, Mario Limonciello wrote: > Hi: > > Currently EFI executables don't include part_msdos or vfat support by > default.=C2=A0 This means that EFI executables can only be launched direc= tly from > ISO9660 filesystems.=C2=A0 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. > part_gpt should also be included (after all GPT is part of UEFI spec). > Thanks, > > -- > Mario Limonciello > Linux Engineer > Dell | OS Engineering > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > - Keshav From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ParBb-0004ye-8V for mharc-grub-devel@gnu.org; Thu, 06 Jan 2011 09:51:31 -0500 Received: from [140.186.70.92] (port=57246 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ParBN-0004Yf-Ii for grub-devel@gnu.org; Thu, 06 Jan 2011 09:51:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Par5l-0005x5-4U for grub-devel@gnu.org; Thu, 06 Jan 2011 09:45:29 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:59635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Par5k-0005ww-Rf for grub-devel@gnu.org; Thu, 06 Jan 2011 09:45:29 -0500 Received: by bwz16 with SMTP id 16so19046516bwz.0 for ; Thu, 06 Jan 2011 06:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=HlxYQQwJXaW39jXjWUg/M0vAE727qLj6jrU+FdAEsCY=; b=jfpQD/HiMBiCD7F5t+UhK8Tt085R7tmHV6GgC2C2ygZxcSIWJqwqYr3BLqshf+SOcB Ak6+XX4LzVZz1gwRe0hXrrF0PqAE6cKrTEJflKmIRlhRYKHO13ro8XBgrVMNQOhjSmB/ yXBznRFiskMpBjBN7sykgQE3gEdrZ0bDx024I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=PwoKY28GZ6H3ryYsxRDj4aeIZ8gi9ykZOk+WpL6kktNhJvYI949VVsvWkEwN4I3F2u oiFuVgshw5D6BcUmx5HuT9RKGAK0XDdRdV7ro7h3v9Qnoe2GABgJiyxmP+6RCLMLE/W0 kA3qjDpuI4zSI4ot7Wzj8RATNs51SZiikw9dY= Received: by 10.204.113.75 with SMTP id z11mr1654274bkp.90.1294325127848; Thu, 06 Jan 2011 06:45:27 -0800 (PST) Received: from debian.bg45.phnet (gprs21.swisscom-mobile.ch [193.247.250.21]) by mx.google.com with ESMTPS id 12sm13476461bki.7.2011.01.06.06.45.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 06 Jan 2011 06:45:26 -0800 (PST) Message-ID: <4D25D571.2050407@gmail.com> Date: Thu, 06 Jan 2011 15:45:05 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: Mario Limonciello References: <4D24A00C.1010100@Dell.com> In-Reply-To: <4D24A00C.1010100@Dell.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigDADC99CE0FB2C6A47141DA4E" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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 14:51:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDADC99CE0FB2C6A47141DA4E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 > Thanks, > > --=20 > *Mario Limonciello* > Linux Engineer > *Dell* | OS Engineering --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigDADC99CE0FB2C6A47141DA4E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk0l1XEACgkQNak7dOguQgmlzgEAm/HFcY9BAancxWhG4rfzmnkK mcaMDSey15R9SpaAdtgBAJ6E5G/Y1bBIcnUj61uKkoPkuLCqIONYykRFXotdNtV8 =jBN5 -----END PGP SIGNATURE----- --------------enigDADC99CE0FB2C6A47141DA4E-- 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--