From f4b214cd72f8d43a818d190ead453b0b21ad80ce Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Mon, 10 Nov 2014 19:03:18 +0000 Subject: [PATCH] luv-live-image: Mark boot partition as EFI System Partition (ESP) Per the UEFI specification the correct system type (in fdisk parlance) or OSType (in the UEFI spec) field value is 0xEF for the EFI System Partition (ESP). Instead of marking the boot partition as FAT32 (0xC) use fdisk to mark it as 0xEF. Note that we can't use parted for this since it doesn't have an option to mark a partition as an ESP. Reported-by: Mateus Rodrigues Costa Acked-by: Ricardo Neri Signed-off-by: Matt Fleming --- meta-luv/recipes-core/images/luv-live-image.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/meta-luv/recipes-core/images/luv-live-image.bb b/meta-luv/recipes-core/images/luv-live-image.bb index 355f73fe9a9..c10c0e6788e 100644 --- a/meta-luv/recipes-core/images/luv-live-image.bb +++ b/meta-luv/recipes-core/images/luv-live-image.bb @@ -59,9 +59,20 @@ build_img() { parted $IMG set 2 boot on + # Mark the second partition OSType field as EFI System Partition as + # specified in the UEFI specification. + fdisk $IMG<