public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta-isar: Fix sdimage-efi wic script
@ 2018-09-07 13:02 Jan Kiszka
  2018-09-07 17:52 ` Henning Schild
  2018-09-11  8:34 ` Maxim Yu. Osipov
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Kiszka @ 2018-09-07 13:02 UTC (permalink / raw)
  To: isar-users; +Cc: Andreas Reichel

In order to have the EFI partition reliably detected as such, we need to
set the right type.

And as we are using GPT, the legacy boot flag plays no role anymore.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
index 580ad21..7aba8e3 100644
--- a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
+++ b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
@@ -2,7 +2,7 @@
 # long-description: Creates a partitioned EFI disk image without any swap that
 # the user can directly dd to boot media.
 
-part /boot --source bootimg-efi-isar --sourceparams="loader=grub-efi" --ondisk sda --label msdos --active --align 1024
+part /boot --source bootimg-efi-isar --sourceparams="loader=grub-efi" --ondisk sda --label efi --part-type=EF00 --align 1024
 
 part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
 
-- 
2.16.4

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

* Re: [PATCH] meta-isar: Fix sdimage-efi wic script
  2018-09-07 13:02 [PATCH] meta-isar: Fix sdimage-efi wic script Jan Kiszka
@ 2018-09-07 17:52 ` Henning Schild
  2018-09-07 17:58   ` Jan Kiszka
  2018-09-11  8:34 ` Maxim Yu. Osipov
  1 sibling, 1 reply; 4+ messages in thread
From: Henning Schild @ 2018-09-07 17:52 UTC (permalink / raw)
  To: [ext] Jan Kiszka; +Cc: isar-users, Andreas Reichel

Am Fri, 7 Sep 2018 15:02:52 +0200
schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:

> In order to have the EFI partition reliably detected as such, we need
> to set the right type.
> 
> And as we are using GPT, the legacy boot flag plays no role anymore.

Could you check how the most recent wic in OE deals with that? I would
like to keep the local diffs in the forked files as small as possible.

So if they have the same or a similar fix, we should just bump wic and
merge our forked files.

Henning
 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
> b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks index
> 580ad21..7aba8e3 100644 ---
> a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks +++
> b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks @@ -2,7 +2,7 @@
>  # long-description: Creates a partitioned EFI disk image without any
> swap that # the user can directly dd to boot media.
>  
> -part /boot --source bootimg-efi-isar
> --sourceparams="loader=grub-efi" --ondisk sda --label msdos --active
> --align 1024 +part /boot --source bootimg-efi-isar
> --sourceparams="loader=grub-efi" --ondisk sda --label efi
> --part-type=EF00 --align 1024 part / --source rootfs --ondisk sda
> --fstype=ext4 --label platform --align 1024 --use-uuid 


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

* Re: [PATCH] meta-isar: Fix sdimage-efi wic script
  2018-09-07 17:52 ` Henning Schild
@ 2018-09-07 17:58   ` Jan Kiszka
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2018-09-07 17:58 UTC (permalink / raw)
  To: Henning Schild; +Cc: isar-users, Andreas Reichel

On 2018-09-07 19:52, Henning Schild wrote:
> Am Fri, 7 Sep 2018 15:02:52 +0200
> schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:
> 
>> In order to have the EFI partition reliably detected as such, we need
>> to set the right type.
>>
>> And as we are using GPT, the legacy boot flag plays no role anymore.
> 
> Could you check how the most recent wic in OE deals with that? I would
> like to keep the local diffs in the forked files as small as possible.
> 
> So if they have the same or a similar fix, we should just bump wic and
> merge our forked files.

This is not touching wic. It's our own wks file for which there is no 
direct correspondence in OE. There are a couple of efi-creating wks 
files in OE, but they got it wrong as well.

The funny story about this: The box I found the issue on was happily 
booting an USB stick with the imprecise format but rejected the very 
same image on an internal (AHCI-attached) disk.

Jan

> 
> Henning
>   
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>>   meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
>> b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks index
>> 580ad21..7aba8e3 100644 ---
>> a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks +++
>> b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks @@ -2,7 +2,7 @@
>>   # long-description: Creates a partitioned EFI disk image without any
>> swap that # the user can directly dd to boot media.
>>   
>> -part /boot --source bootimg-efi-isar
>> --sourceparams="loader=grub-efi" --ondisk sda --label msdos --active
>> --align 1024 +part /boot --source bootimg-efi-isar
>> --sourceparams="loader=grub-efi" --ondisk sda --label efi
>> --part-type=EF00 --align 1024 part / --source rootfs --ondisk sda
>> --fstype=ext4 --label platform --align 1024 --use-uuid
> 

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

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

* Re: [PATCH] meta-isar: Fix sdimage-efi wic script
  2018-09-07 13:02 [PATCH] meta-isar: Fix sdimage-efi wic script Jan Kiszka
  2018-09-07 17:52 ` Henning Schild
@ 2018-09-11  8:34 ` Maxim Yu. Osipov
  1 sibling, 0 replies; 4+ messages in thread
From: Maxim Yu. Osipov @ 2018-09-11  8:34 UTC (permalink / raw)
  To: Jan Kiszka, isar-users; +Cc: Andreas Reichel

On 09/07/2018 04:02 PM, Jan Kiszka wrote:
> In order to have the EFI partition reliably detected as such, we need to
> set the right type.
> 
> And as we are using GPT, the legacy boot flag plays no role anymore.

Applied to the 'next',

Thanks,
Maxim.

> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>   meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
> index 580ad21..7aba8e3 100644
> --- a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
> +++ b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks
> @@ -2,7 +2,7 @@
>   # long-description: Creates a partitioned EFI disk image without any swap that
>   # the user can directly dd to boot media.
>   
> -part /boot --source bootimg-efi-isar --sourceparams="loader=grub-efi" --ondisk sda --label msdos --active --align 1024
> +part /boot --source bootimg-efi-isar --sourceparams="loader=grub-efi" --ondisk sda --label efi --part-type=EF00 --align 1024
>   
>   part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
>   
> 


-- 
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov

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

end of thread, other threads:[~2018-09-11  8:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-07 13:02 [PATCH] meta-isar: Fix sdimage-efi wic script Jan Kiszka
2018-09-07 17:52 ` Henning Schild
2018-09-07 17:58   ` Jan Kiszka
2018-09-11  8:34 ` Maxim Yu. Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox