[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#783977: partman-auto: should create efi partitions as fat32 rather than free



* Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> [2015-05-01 15:11]:
> It looks like partman-auto, in the recipe-amd64-efi recipes, uses "free"
> rather than say, "fat32" as a partition type for the EFI partitions it tries
> to create. This has the unfortunate side-effect of not letting partman-efi do
> all that it may try to do, such as setting a name for the EFI partition (see
> partman-efi's update.d/efi_sync_flag). This happens because decode_recipe
> defaults to using 'ext2' to describe that partition, which doesn't match
> partman-efi's checks.

This patch looks correct to me but I'm no EFI expert.  I'm copying
Steve McIntyre.

> >From c717f8418513a268c708b496dccb80422a385eaf Mon Sep 17 00:00:00 2001
> From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
> Date: Fri, 1 May 2015 14:58:24 -0400
> Subject: [PATCH] Initially define efi partitions as fat32 for amd64/i386
> 
> ---
>  recipes-amd64-efi/atomic | 2 +-
>  recipes-amd64-efi/home   | 2 +-
>  recipes-amd64-efi/multi  | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/recipes-amd64-efi/atomic b/recipes-amd64-efi/atomic
> index 2e81c4f..2995fa2 100644
> --- a/recipes-amd64-efi/atomic
> +++ b/recipes-amd64-efi/atomic
> @@ -1,6 +1,6 @@
>  partman-auto/text/atomic_scheme ::
>  
> -538 538 1075 free
> +538 538 1075 fat32
>  	$iflabel{ gpt }
>  	$reusemethod{ }
>  	method{ efi }
> diff --git a/recipes-amd64-efi/home b/recipes-amd64-efi/home
> index ed12a51..77a49b3 100644
> --- a/recipes-amd64-efi/home
> +++ b/recipes-amd64-efi/home
> @@ -1,6 +1,6 @@
>  partman-auto/text/home_scheme ::
>  
> -538 538 1075 free
> +538 538 1075 fat32
>  	$iflabel{ gpt }
>  	$reusemethod{ }
>  	method{ efi }
> diff --git a/recipes-amd64-efi/multi b/recipes-amd64-efi/multi
> index 37e03d6..bb3ff08 100644
> --- a/recipes-amd64-efi/multi
> +++ b/recipes-amd64-efi/multi
> @@ -1,6 +1,6 @@
>  partman-auto/text/multi_scheme ::
>  
> -538 538 1075 free
> +538 538 1075 fat32
>  	$iflabel{ gpt }
>  	$reusemethod{ }
>  	method{ efi }
> -- 
> 2.1.4

-- 
Martin Michlmayr
http://www.cyrius.com/


Reply to: