All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Explicitly build msdos partition support into EFI executables
@ 2011-01-05 16:45 Mario Limonciello
  2011-01-06 14:27 ` KESHAV P.R.
  2011-01-06 14:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 2 replies; 4+ messages in thread
From: Mario Limonciello @ 2011-01-05 16:45 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: text/plain, Size: 389 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1522 bytes --]

[-- Attachment #2: efi_fat32.patch --]
[-- Type: text/x-patch, Size: 1141 bytes --]

=== 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 <Mario_Limonciello@Dell.com>
+
+        * util/grub-mkrescue.in: Explicitly build part_msdos and vfat into
+        efi executables.
+
 2011-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
 
 	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 ::/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Explicitly build msdos partition support into EFI executables
  2011-01-05 16:45 [PATCH] Explicitly build msdos partition support into EFI executables Mario Limonciello
@ 2011-01-06 14:27 ` KESHAV P.R.
  2011-01-06 14:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 0 replies; 4+ messages in thread
From: KESHAV P.R. @ 2011-01-06 14:27 UTC (permalink / raw)
  To: The development of GNU GRUB

On Wed, Jan 5, 2011 at 22:15, Mario Limonciello
<Mario_Limonciello@dell.com> 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.
>
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Explicitly build msdos partition support into EFI executables
  2011-01-05 16:45 [PATCH] Explicitly build msdos partition support into EFI executables Mario Limonciello
  2011-01-06 14:27 ` KESHAV P.R.
@ 2011-01-06 14:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-01-06 17:18   ` Mario Limonciello
  1 sibling, 1 reply; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-01-06 14:45 UTC (permalink / raw)
  To: Mario Limonciello; +Cc: grub-devel

[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

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,
>
> -- 
> *Mario Limonciello*
> Linux Engineer
> *Dell* | OS Engineering


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Explicitly build msdos partition support into EFI executables
  2011-01-06 14:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-01-06 17:18   ` Mario Limonciello
  0 siblings, 0 replies; 4+ messages in thread
From: Mario Limonciello @ 2011-01-06 17:18 UTC (permalink / raw)
  To: Vladimir 'φ-coder/phcoder' Serbinenko; +Cc: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2409 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-06 17:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-05 16:45 [PATCH] Explicitly build msdos partition support into EFI executables Mario Limonciello
2011-01-06 14:27 ` KESHAV P.R.
2011-01-06 14:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-06 17:18   ` Mario Limonciello

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.