public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
@ 2022-07-07 14:18 Anton Mikanovich
  2022-07-07 14:18 ` [PATCH 1/2] meta: introduce systemd-boot dependency variable Anton Mikanovich
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-07 14:18 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

Starting from bookworm systemd-boot was moved into separate package
which was not installed by default.
Add missed dependency variable on systemd-boot for wks files with this
bootloader usage. Also cover it with CI enabling failed configuration
for qemuarm-bookworm target.

Anton Mikanovich (2):
  meta: introduce systemd-boot dependency variable
  meta-isar: enable systemd-boot for qemuarm-bookworm

 meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 5 +++++
 meta/conf/distro/debian-common.conf              | 2 ++
 2 files changed, 7 insertions(+)

-- 
2.17.1


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

* [PATCH 1/2] meta: introduce systemd-boot dependency variable
  2022-07-07 14:18 [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Anton Mikanovich
@ 2022-07-07 14:18 ` Anton Mikanovich
  2022-07-08  8:31   ` Anton Mikanovich
  2022-07-07 14:18 ` [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm Anton Mikanovich
  2022-07-07 15:50 ` [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Henning Schild
  2 siblings, 1 reply; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-07 14:18 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

The package systemd-boot was separated from systemd starting from
Debian Bookworm. This makes targets using this bootloader declare
additional dependency based on distro version. Add variable
SYSTEMD_BOOTLOADER_INSTALL to use as IMAGE_PREINSTALL in configs.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/conf/distro/debian-common.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/conf/distro/debian-common.conf b/meta/conf/distro/debian-common.conf
index d24fc2b..145b804 100644
--- a/meta/conf/distro/debian-common.conf
+++ b/meta/conf/distro/debian-common.conf
@@ -27,6 +27,8 @@ GRUB_BOOTLOADER_INSTALL_armhf = "grub-efi-arm-bin"
 GRUB_BOOTLOADER_INSTALL_arm64 = "grub-efi-arm64-bin"
 
 SYSLINUX_BOOTLOADER_INSTALL = "syslinux syslinux-common"
+SYSTEMD_BOOTLOADER_INSTALL = "systemd"
+SYSTEMD_BOOTLOADER_INSTALL_debian-bookworm = "systemd-boot"
 
 COMPAT_DISTRO_ARCH_amd64 = "i386"
 COMPAT_DISTRO_ARCH_arm64 = "armhf"
-- 
2.17.1


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

* [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm
  2022-07-07 14:18 [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Anton Mikanovich
  2022-07-07 14:18 ` [PATCH 1/2] meta: introduce systemd-boot dependency variable Anton Mikanovich
@ 2022-07-07 14:18 ` Anton Mikanovich
  2022-07-08  8:48   ` Henning Schild
  2022-07-07 15:50 ` [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Henning Schild
  2 siblings, 1 reply; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-07 14:18 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

Add WIC imagetype with wks which use systemd-boot bootloader for
SYSTEMD_BOOTLOADER_INSTALL testing.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf
index 0819236..b515e40 100644
--- a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf
+++ b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf
@@ -2,3 +2,8 @@
 
 MACHINE ?= "qemuarm"
 DISTRO ?= "debian-bookworm"
+
+IMAGE_FSTYPES_append = " wic"
+WKS_FILE ?= "sdimage-efi-sd"
+
+IMAGE_PREINSTALL += "${SYSTEMD_BOOTLOADER_INSTALL}"
-- 
2.17.1


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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-07 14:18 [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Anton Mikanovich
  2022-07-07 14:18 ` [PATCH 1/2] meta: introduce systemd-boot dependency variable Anton Mikanovich
  2022-07-07 14:18 ` [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm Anton Mikanovich
@ 2022-07-07 15:50 ` Henning Schild
  2022-07-08  7:57   ` Bezdeka, Florian
  2022-07-08  9:01   ` Baurzhan Ismagulov
  2 siblings, 2 replies; 17+ messages in thread
From: Henning Schild @ 2022-07-07 15:50 UTC (permalink / raw)
  To: Anton Mikanovich; +Cc: isar-users

Seems like PATCH 1/2 did not make it, also not in the archive.

Henning

Am Thu,  7 Jul 2022 17:18:01 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:

> Starting from bookworm systemd-boot was moved into separate package
> which was not installed by default.
> Add missed dependency variable on systemd-boot for wks files with this
> bootloader usage. Also cover it with CI enabling failed configuration
> for qemuarm-bookworm target.
> 
> Anton Mikanovich (2):
>   meta: introduce systemd-boot dependency variable
>   meta-isar: enable systemd-boot for qemuarm-bookworm
> 
>  meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 5 +++++
>  meta/conf/distro/debian-common.conf              | 2 ++
>  2 files changed, 7 insertions(+)
> 


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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-07 15:50 ` [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Henning Schild
@ 2022-07-08  7:57   ` Bezdeka, Florian
  2022-07-08  8:07     ` Anton Mikanovich
  2022-07-08  9:01   ` Baurzhan Ismagulov
  1 sibling, 1 reply; 17+ messages in thread
From: Bezdeka, Florian @ 2022-07-08  7:57 UTC (permalink / raw)
  To: amikan, Schild, Henning; +Cc: isar-users

Willing to give it a try... But as Henning already mentioned patch 1
was lost somewhere...

On Thu, 2022-07-07 at 17:50 +0200, Henning Schild wrote:
> Seems like PATCH 1/2 did not make it, also not in the archive.
> 
> Henning
> 
> Am Thu,  7 Jul 2022 17:18:01 +0300
> schrieb Anton Mikanovich <amikan@ilbers.de>:
> 
> > Starting from bookworm systemd-boot was moved into separate package
> > which was not installed by default.
> > Add missed dependency variable on systemd-boot for wks files with this
> > bootloader usage. Also cover it with CI enabling failed configuration
> > for qemuarm-bookworm target.
> > 
> > Anton Mikanovich (2):
> >   meta: introduce systemd-boot dependency variable
> >   meta-isar: enable systemd-boot for qemuarm-bookworm
> > 
> >  meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 5 +++++
> >  meta/conf/distro/debian-common.conf              | 2 ++
> >  2 files changed, 7 insertions(+)
> > 
> 


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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-08  7:57   ` Bezdeka, Florian
@ 2022-07-08  8:07     ` Anton Mikanovich
  2022-07-08  8:11       ` Bezdeka, Florian
  0 siblings, 1 reply; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-08  8:07 UTC (permalink / raw)
  To: Bezdeka, Florian, Schild, Henning; +Cc: isar-users, Baurzhan Ismagulov

08.07.2022 10:57, Bezdeka, Florian wrote:
> Willing to give it a try... But as Henning already mentioned patch 1
> was lost somewhere...
It looks like Google Groups issue, because there are all 3 mails on 
maillist.
Anyway, here are declarations I've used there:

SYSTEMD_BOOTLOADER_INSTALL = "systemd"
SYSTEMD_BOOTLOADER_INSTALL_debian-bookworm = "systemd-boot"

We can't just use 'systemd < 251 | systemd-boot' syntax in direct apt-get
install calls, but maybe the way of installing imager deps can be 
rebuild later
to use more flexible dependencies syntax.

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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-08  8:07     ` Anton Mikanovich
@ 2022-07-08  8:11       ` Bezdeka, Florian
  2022-07-08  8:23         ` Bezdeka, Florian
  0 siblings, 1 reply; 17+ messages in thread
From: Bezdeka, Florian @ 2022-07-08  8:11 UTC (permalink / raw)
  To: amikan, Schild, Henning; +Cc: isar-users, ibr

On Fri, 2022-07-08 at 11:07 +0300, Anton Mikanovich wrote:
> 08.07.2022 10:57, Bezdeka, Florian wrote:
> > Willing to give it a try... But as Henning already mentioned patch 1
> > was lost somewhere...
> It looks like Google Groups issue, because there are all 3 mails on 
> maillist.

Nope... It did not make it into my inbox and I can't find it in the
archive (google groups) as well. Coverletter and 2/2 made it.

Please resend.

> Anyway, here are declarations I've used there:
> 
> SYSTEMD_BOOTLOADER_INSTALL = "systemd"
> SYSTEMD_BOOTLOADER_INSTALL_debian-bookworm = "systemd-boot"
> 
> We can't just use 'systemd < 251 | systemd-boot' syntax in direct apt-get
> install calls, but maybe the way of installing imager deps can be 
> rebuild later
> to use more flexible dependencies syntax.


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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-08  8:11       ` Bezdeka, Florian
@ 2022-07-08  8:23         ` Bezdeka, Florian
  2022-07-08  8:28           ` Anton Mikanovich
  2022-07-08  8:44           ` Henning Schild
  0 siblings, 2 replies; 17+ messages in thread
From: Bezdeka, Florian @ 2022-07-08  8:23 UTC (permalink / raw)
  To: amikan, Schild, Henning; +Cc: isar-users, ibr

On Fri, 2022-07-08 at 08:11 +0000, Bezdeka, Florian wrote:
> On Fri, 2022-07-08 at 11:07 +0300, Anton Mikanovich wrote:
> > 08.07.2022 10:57, Bezdeka, Florian wrote:
> > > Willing to give it a try... But as Henning already mentioned patch 1
> > > was lost somewhere...
> > It looks like Google Groups issue, because there are all 3 mails on 
> > maillist.
> 
> Nope... It did not make it into my inbox and I can't find it in the
> archive (google groups) as well. Coverletter and 2/2 made it.
> 
> Please resend.
> 
> > Anyway, here are declarations I've used there:
> > 
> > SYSTEMD_BOOTLOADER_INSTALL = "systemd"
> > SYSTEMD_BOOTLOADER_INSTALL_debian-bookworm = "systemd-boot"

Hm... I'm quite sure hat we (will) have more affected distributions
like Ubuntu.

> > 
> > We can't just use 'systemd < 251 | systemd-boot' syntax in direct apt-get
> > install calls, but maybe the way of installing imager deps can be 
> > rebuild later
> > to use more flexible dependencies syntax.
> 


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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-08  8:23         ` Bezdeka, Florian
@ 2022-07-08  8:28           ` Anton Mikanovich
  2022-07-08  8:49             ` Henning Schild
  2022-07-08  8:44           ` Henning Schild
  1 sibling, 1 reply; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-08  8:28 UTC (permalink / raw)
  To: Bezdeka, Florian, Schild, Henning; +Cc: isar-users, ibr

08.07.2022 11:23, Bezdeka, Florian wrote:
> Hm... I'm quite sure hat we (will) have more affected distributions
> like Ubuntu.

Nope. Ubuntu do not have systemd-boot package, even kinetic with systemd 
251.2
has bootloader inside.


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

* [PATCH 1/2] meta: introduce systemd-boot dependency variable
  2022-07-07 14:18 ` [PATCH 1/2] meta: introduce systemd-boot dependency variable Anton Mikanovich
@ 2022-07-08  8:31   ` Anton Mikanovich
  2022-07-08  8:32     ` Anton Mikanovich
  0 siblings, 1 reply; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-08  8:31 UTC (permalink / raw)
  To: isar-users, Florian Bezdeka, Henning Schild


The package systemd-boot was separated from systemd starting from
Debian Bookworm. This makes targets using this bootloader declare
additional dependency based on distro version. Add variable
SYSTEMD_BOOTLOADER_INSTALL to use as IMAGE_PREINSTALL in configs.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
  meta/conf/distro/debian-common.conf | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/meta/conf/distro/debian-common.conf 
b/meta/conf/distro/debian-common.conf
index d24fc2b..145b804 100644
--- a/meta/conf/distro/debian-common.conf
+++ b/meta/conf/distro/debian-common.conf
@@ -27,6 +27,8 @@ GRUB_BOOTLOADER_INSTALL_armhf = "grub-efi-arm-bin"
  GRUB_BOOTLOADER_INSTALL_arm64 = "grub-efi-arm64-bin"
   SYSLINUX_BOOTLOADER_INSTALL = "syslinux syslinux-common"
+SYSTEMD_BOOTLOADER_INSTALL = "systemd"
+SYSTEMD_BOOTLOADER_INSTALL_debian-bookworm = "systemd-boot"
   COMPAT_DISTRO_ARCH_amd64 = "i386"
  COMPAT_DISTRO_ARCH_arm64 = "armhf"
-- 
2.17.1


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

* Re: [PATCH 1/2] meta: introduce systemd-boot dependency variable
  2022-07-08  8:31   ` Anton Mikanovich
@ 2022-07-08  8:32     ` Anton Mikanovich
  0 siblings, 0 replies; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-08  8:32 UTC (permalink / raw)
  To: isar-users, Florian Bezdeka, Henning Schild

08.07.2022 11:31, Anton Mikanovich wrote:
>
> The package systemd-boot was separated from systemd starting from
> Debian Bookworm. This makes targets using this bootloader declare
> additional dependency based on distro version. Add variable
> SYSTEMD_BOOTLOADER_INSTALL to use as IMAGE_PREINSTALL in configs.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta/conf/distro/debian-common.conf | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/conf/distro/debian-common.conf 
> b/meta/conf/distro/debian-common.conf
> index d24fc2b..145b804 100644
> --- a/meta/conf/distro/debian-common.conf
> +++ b/meta/conf/distro/debian-common.conf
> @@ -27,6 +27,8 @@ GRUB_BOOTLOADER_INSTALL_armhf = "grub-efi-arm-bin"
>  GRUB_BOOTLOADER_INSTALL_arm64 = "grub-efi-arm64-bin"
>   SYSLINUX_BOOTLOADER_INSTALL = "syslinux syslinux-common"
> +SYSTEMD_BOOTLOADER_INSTALL = "systemd"
> +SYSTEMD_BOOTLOADER_INSTALL_debian-bookworm = "systemd-boot"
>   COMPAT_DISTRO_ARCH_amd64 = "i386"
>  COMPAT_DISTRO_ARCH_arm64 = "armhf"

This is just a resend on p1 from '[PATCH 0/2] Fix and cover systemd-boot 
usage in bookworm'
which was missed for some reason.


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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-08  8:23         ` Bezdeka, Florian
  2022-07-08  8:28           ` Anton Mikanovich
@ 2022-07-08  8:44           ` Henning Schild
  1 sibling, 0 replies; 17+ messages in thread
From: Henning Schild @ 2022-07-08  8:44 UTC (permalink / raw)
  To: Bezdeka, Florian (T CED SES-DE); +Cc: amikan, isar-users, ibr

Am Fri, 8 Jul 2022 10:23:40 +0200
schrieb "Bezdeka, Florian (T CED SES-DE)" <florian.bezdeka@siemens.com>:

> On Fri, 2022-07-08 at 08:11 +0000, Bezdeka, Florian wrote:
> > On Fri, 2022-07-08 at 11:07 +0300, Anton Mikanovich wrote:  
> > > 08.07.2022 10:57, Bezdeka, Florian wrote:  
> > > > Willing to give it a try... But as Henning already mentioned
> > > > patch 1 was lost somewhere...  
> > > It looks like Google Groups issue, because there are all 3 mails
> > > on maillist.  
> > 
> > Nope... It did not make it into my inbox and I can't find it in the
> > archive (google groups) as well. Coverletter and 2/2 made it.
> > 
> > Please resend.
> >   
> > > Anyway, here are declarations I've used there:
> > > 
> > > SYSTEMD_BOOTLOADER_INSTALL = "systemd"
> > > SYSTEMD_BOOTLOADER_INSTALL_debian-bookworm = "systemd-boot"  
> 
> Hm... I'm quite sure hat we (will) have more affected distributions
> like Ubuntu.

Yes this is kind of hard to maintain. But will likely do. Not sure we
need to cater for all distros out there, but only for the ones in isar.

Henning

> > > 
> > > We can't just use 'systemd < 251 | systemd-boot' syntax in direct
> > > apt-get install calls, but maybe the way of installing imager
> > > deps can be rebuild later
> > > to use more flexible dependencies syntax.  
> >   
> 


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

* Re: [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm
  2022-07-07 14:18 ` [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm Anton Mikanovich
@ 2022-07-08  8:48   ` Henning Schild
  2022-07-08 11:04     ` Jan Kiszka
  0 siblings, 1 reply; 17+ messages in thread
From: Henning Schild @ 2022-07-08  8:48 UTC (permalink / raw)
  To: Anton Mikanovich; +Cc: isar-users

Am Thu,  7 Jul 2022 17:18:03 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:

> Add WIC imagetype with wks which use systemd-boot bootloader for
> SYSTEMD_BOOTLOADER_INSTALL testing.
> 
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf
> b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf index
> 0819236..b515e40 100644 ---
> a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf +++
> b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf @@ -2,3 +2,8 @@
>  
>  MACHINE ?= "qemuarm"
>  DISTRO ?= "debian-bookworm"
> +
> +IMAGE_FSTYPES_append = " wic"
> +WKS_FILE ?= "sdimage-efi-sd"
> +
> +IMAGE_PREINSTALL += "${SYSTEMD_BOOTLOADER_INSTALL}"

Unlike the other bootloaders this one comes from inside the target
rootfs, it is a PREINSTALL for the image, not an IMAGER_INSTALL ...
which kind of is a PREINSTALL for the build chroot.

So i suggest to somehow cover that subtle difference i.e. by naming the
variable SYSTEMD_BOOTLOADER_PREINSTALL

Henning

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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-08  8:28           ` Anton Mikanovich
@ 2022-07-08  8:49             ` Henning Schild
  0 siblings, 0 replies; 17+ messages in thread
From: Henning Schild @ 2022-07-08  8:49 UTC (permalink / raw)
  To: Anton Mikanovich; +Cc: Bezdeka, Florian, isar-users, ibr

Am Fri, 8 Jul 2022 11:28:43 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:

> 08.07.2022 11:23, Bezdeka, Florian wrote:
> > Hm... I'm quite sure hat we (will) have more affected distributions
> > like Ubuntu.  
> 
> Nope. Ubuntu do not have systemd-boot package, even kinetic with
> systemd 251.2
> has bootloader inside.

In fact the variable should always be "systemd" and used for all
distros. More modern ones would append or replace it with the
systemd-boot-efi.

Henning

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

* Re: [PATCH 0/2] Fix and cover systemd-boot usage in bookworm
  2022-07-07 15:50 ` [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Henning Schild
  2022-07-08  7:57   ` Bezdeka, Florian
@ 2022-07-08  9:01   ` Baurzhan Ismagulov
  1 sibling, 0 replies; 17+ messages in thread
From: Baurzhan Ismagulov @ 2022-07-08  9:01 UTC (permalink / raw)
  To: isar-users; +Cc: henning.schild, florian.bezdeka

On Thu, Jul 07, 2022 at 05:50:21PM +0200, Henning Schild wrote:
> Seems like PATCH 1/2 did not make it, also not in the archive.

Thanks for the heads up. I've checked and seems we have an issue with Google
Groups. Interestingly, on https://groups.google.com/g/isar-users/c/AM9L31ugDco
I do see patch 1 but not patch 2 -- the opposite of what you see; probably
distributed server issues.

I got both patches over the list yesterday, within about a minute of sending.
I've bounced them to you and Florian. Bouncing to isar-users, I got the
following response from Mail Delivery Subsystem <mailer-daemon@googlemail.com>:

    ** Message not delivered **

    Your message couldn't be delivered to isar-users@googlegroups.com because
    the remote server is misconfigured. See technical details below for more
    information.

    The response was:

    Circular loop detected

If you experience further issues, please let me know off-list.

With kind regards,
Baurzhan

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

* Re: [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm
  2022-07-08  8:48   ` Henning Schild
@ 2022-07-08 11:04     ` Jan Kiszka
  2022-07-12 13:08       ` Anton Mikanovich
  0 siblings, 1 reply; 17+ messages in thread
From: Jan Kiszka @ 2022-07-08 11:04 UTC (permalink / raw)
  To: Henning Schild, Anton Mikanovich; +Cc: isar-users

On 08.07.22 10:48, Henning Schild wrote:
> Am Thu,  7 Jul 2022 17:18:03 +0300
> schrieb Anton Mikanovich <amikan@ilbers.de>:
> 
>> Add WIC imagetype with wks which use systemd-boot bootloader for
>> SYSTEMD_BOOTLOADER_INSTALL testing.
>>
>> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
>> ---
>>  meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf
>> b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf index
>> 0819236..b515e40 100644 ---
>> a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf +++
>> b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf @@ -2,3 +2,8 @@
>>  
>>  MACHINE ?= "qemuarm"
>>  DISTRO ?= "debian-bookworm"
>> +
>> +IMAGE_FSTYPES_append = " wic"
>> +WKS_FILE ?= "sdimage-efi-sd"
>> +
>> +IMAGE_PREINSTALL += "${SYSTEMD_BOOTLOADER_INSTALL}"
> 
> Unlike the other bootloaders this one comes from inside the target
> rootfs, it is a PREINSTALL for the image, not an IMAGER_INSTALL ...
> which kind of is a PREINSTALL for the build chroot.
> 
> So i suggest to somehow cover that subtle difference i.e. by naming the
> variable SYSTEMD_BOOTLOADER_PREINSTALL

Why should systemd-boot be any different to other EFI bootloaders? Is
our plugin different from all the others? The normal way is indeed
installing it via IMAGER_INSTALL.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

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

* Re: [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm
  2022-07-08 11:04     ` Jan Kiszka
@ 2022-07-12 13:08       ` Anton Mikanovich
  0 siblings, 0 replies; 17+ messages in thread
From: Anton Mikanovich @ 2022-07-12 13:08 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: isar-users, Henning Schild

08.07.2022 14:04, Jan Kiszka wrote:
> On 08.07.22 10:48, Henning Schild wrote:
>> Am Thu,  7 Jul 2022 17:18:03 +0300
>> schrieb Anton Mikanovich <amikan@ilbers.de>:
>>
>>> Add WIC imagetype with wks which use systemd-boot bootloader for
>>> SYSTEMD_BOOTLOADER_INSTALL testing.
>>>
>>> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
>>> ---
>>>   meta-isar/conf/multiconfig/qemuarm-bookworm.conf | 5 +++++
>>>   1 file changed, 5 insertions(+)
>>>
>>> diff --git a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf
>>> b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf index
>>> 0819236..b515e40 100644 ---
>>> a/meta-isar/conf/multiconfig/qemuarm-bookworm.conf +++
>>> b/meta-isar/conf/multiconfig/qemuarm-bookworm.conf @@ -2,3 +2,8 @@
>>>   
>>>   MACHINE ?= "qemuarm"
>>>   DISTRO ?= "debian-bookworm"
>>> +
>>> +IMAGE_FSTYPES_append = " wic"
>>> +WKS_FILE ?= "sdimage-efi-sd"
>>> +
>>> +IMAGE_PREINSTALL += "${SYSTEMD_BOOTLOADER_INSTALL}"
>> Unlike the other bootloaders this one comes from inside the target
>> rootfs, it is a PREINSTALL for the image, not an IMAGER_INSTALL ...
>> which kind of is a PREINSTALL for the build chroot.
>>
>> So i suggest to somehow cover that subtle difference i.e. by naming the
>> variable SYSTEMD_BOOTLOADER_PREINSTALL
> Why should systemd-boot be any different to other EFI bootloaders? Is
> our plugin different from all the others? The normal way is indeed
> installing it via IMAGER_INSTALL.
>
> Jan
>
As Henning already mentioned systemd-boot(systemd-boot-efi) files (like
systemd-bootx64.efi) supposed to be installed on target rootfs to be used
during the boot process, while IMAGER_INSTALL will place them on buildchroot
only.


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

end of thread, other threads:[~2022-07-12 13:08 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 14:18 [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Anton Mikanovich
2022-07-07 14:18 ` [PATCH 1/2] meta: introduce systemd-boot dependency variable Anton Mikanovich
2022-07-08  8:31   ` Anton Mikanovich
2022-07-08  8:32     ` Anton Mikanovich
2022-07-07 14:18 ` [PATCH 2/2] meta-isar: enable systemd-boot for qemuarm-bookworm Anton Mikanovich
2022-07-08  8:48   ` Henning Schild
2022-07-08 11:04     ` Jan Kiszka
2022-07-12 13:08       ` Anton Mikanovich
2022-07-07 15:50 ` [PATCH 0/2] Fix and cover systemd-boot usage in bookworm Henning Schild
2022-07-08  7:57   ` Bezdeka, Florian
2022-07-08  8:07     ` Anton Mikanovich
2022-07-08  8:11       ` Bezdeka, Florian
2022-07-08  8:23         ` Bezdeka, Florian
2022-07-08  8:28           ` Anton Mikanovich
2022-07-08  8:49             ` Henning Schild
2022-07-08  8:44           ` Henning Schild
2022-07-08  9:01   ` Baurzhan Ismagulov

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