[OE-core] [RFC] dm-verity image support

2024-05-03 Thread Louis Rannou via lists.openembedded.org
) ) Instead, we may develop a wic plugin that builds the desired verity partition. Please tell me if there is any interest Regards, Louis Rannou General -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#198983): https://lists.openembedded.org/g

[OE-core][RFC v2 11/12] create-spdx-3.0: support for License profile

2023-10-31 Thread Louis Rannou
to return the list of existing SPDX3LicenseExpression and SPDX3SimpleLicensingText Split function convert_license_to_spdx into three separate functions and adapt them to match spdx3.0 classes Signed-off-by: Samantha Jalabert Signed-off-by: Louis Rannou --- meta/classes/create-spdx-3.0.bbc

[OE-core][RFC v2 12/12] oeqa/selftest/cases/spdx: change test for spdx3

2023-10-31 Thread Louis Rannou
fix issue in selftest due to spdx bump Signed-off-by: Louis Rannou --- meta/lib/oeqa/selftest/cases/spdx.py | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/spdx.py b/meta/lib/oeqa/selftest/cases/spdx.py index 05fc4e390b

[OE-core][RFC v2 09/12] create-spdx-3.0: support for spdx image

2023-10-31 Thread Louis Rannou
From: Samantha Jalabert Support for dependencies to provide the complete recipe SPDX. Support for runtime SPDX Support for combined SPDX Signed-off-by: Samantha Jalabert Signed-off-by: Louis Rannou --- meta/classes/create-spdx-2.2.bbclass | 1 - meta/classes/create-spdx-3.0.bbclass | 389

[OE-core][RFC v2 10/12] create-spdx-3.0: Use FQDN spdx ids

2023-10-31 Thread Louis Rannou
From: Samantha Jalabert Create a function to generate spdxIds Create a function to generate relationship and remove add_relationship method Implement both functions Signed-off-by: Samantha Jalabert Signed-off-by: Louis Rannou --- meta/classes/create-spdx-3.0.bbclass | 73

[OE-core][RFC v2 07/12] create-spdx-3.0: support for recipe spdx creation

2023-10-31 Thread Louis Rannou
From: Samantha Jalabert Change functions and tasks to match the SPDX 3 model. Signed-off-by: Samantha Jalabert Signed-off-by: Louis Rannou --- meta/classes/create-spdx-3.0.bbclass | 731 +-- meta/lib/oe/spdx3.py | 4 +- 2 files changed, 230

[OE-core][RFC v2 08/12] create-spdx-3.0: draft: remove low value stuff

2023-10-31 Thread Louis Rannou
remove stuff which are hard to fix and low value Signed-off-by: Louis Rannou --- meta/classes/create-spdx-3.0.bbclass | 109 ++- 1 file changed, 5 insertions(+), 104 deletions(-) diff --git a/meta/classes/create-spdx-3.0.bbclass b/meta/classes/create-spdx-3.0.bbclass

[OE-core][RFC v2 06/12] README.SPDX3: add file

2023-10-31 Thread Louis Rannou
From: Marta Rybczynska Add a specific readme for SPDX3 with open questions and other notes related to the PoC. Signed-off-by: Marta Rybczynska Signed-off-by: Samantha Jalabert Signed-off-by: Louis Rannou --- README.SPDX3 | 45 + 1 file changed, 45

[OE-core][RFC v2 03/12] oe/sbom: change the write_doc to prepare for spdx3

2023-10-31 Thread Louis Rannou
This changes the prototype of write_doc as the SPDX3 documentation does not specify yet which is the root element. Signed-off-by: Louis Rannou Signed-off-by: Marta Rybczynska Signed-off-by: Samantha Jalabert --- meta/classes/create-spdx.bbclass | 2 +- meta/lib/oe/sbom.py | 6

[OE-core][RFC v2 04/12] create-spdx-3.0: SPDX3 objects as classes

2023-10-31 Thread Louis Rannou
Create SPDX3 objects that classes as they are described in the SPDX3 model. Signed-off-by: Louis Rannou Signed-off-by: Samantha Jalabert --- meta/lib/oe/spdx3.py | 386 +++ 1 file changed, 386 insertions(+) create mode 100644 meta/lib/oe/spdx3.py diff

[OE-core][RFC v2 05/12] oe/sbom: search into json

2023-10-31 Thread Louis Rannou
Create a function that search into a json-ld instead of completely loading it. Signed-off-by: Louis Rannou --- meta/lib/oe/sbom.py | 32 meta/lib/oe/spdx3.py | 13 +++-- 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/meta/lib/oe/sbom.py

[OE-core][RFC v2 02/12] oe/spdx: extend spdx.py objects

2023-10-31 Thread Louis Rannou
Extend objects used to build the spdx scheme: - add support for inheritance - hide all attributes starting by _spdx - add methods to list properties and item pairs - improve the serializer to match the spdx3 scheme Signed-off-by: Louis Rannou --- meta/lib/oe/sbom.py | 2 +- meta/lib/oe

[OE-core][RFC v2 01/12] create-spdx-3.0: copy 2.2 class

2023-10-31 Thread Louis Rannou
Initialize the work on SPDX 3 with a copy of the SPDX 2.2. Change default to SPDX 3. Signed-off-by: Marta Rybczynska Signed-off-by: Louis Rannou --- meta/classes/create-spdx-3.0.bbclass | 1158 ++ 1 file changed, 1158 insertions(+) create mode 100644 meta/classes

[OE-core][RFC v2 00/12] SPDX3 Proof-of-Concept

2023-10-31 Thread Louis Rannou
in progress still. Our questions and open points are available in the README.SPDX3 file. Louis Rannou (7): create-spdx-3.0: copy 2.2 class oe/spdx: extend spdx.py objects oe/sbom: change the write_doc to prepare for spdx3 create-spdx-3.0: SPDX3 objects as classes oe/sbom: search into json

[OE-core] [PATCH v3] systemd: sysusersd: change how the root home directory is set

2023-10-06 Thread Louis Rannou
From: Louis Rannou Modifying the sources brings troubles in the devtool command. Therefore it is better to patch the source with a custom variable, and later replace it with the correct root path. Suggestion from : <https://lore.kernel.org/all/db5pr02mb102137939de6d43e423a9d29

Re: [OE-core] [PATCH v2] systemd: sysusersd: change how the root home directory is set

2023-10-06 Thread Louis Rannou
On 06/10/2023 15:16, Julien Stephan wrote: Le jeu. 5 oct. 2023 à 22:55, Louis Rannou a écrit : From: Louis Rannou Modifying the sources brings troubles in the devtool command. Therefore it is better to patch the source with a custom variable, and later replace it with the correct root

[OE-core] [PATCH v2] systemd: sysusersd: change how the root home directory is set

2023-10-05 Thread Louis Rannou
From: Louis Rannou Modifying the sources brings troubles in the devtool command. Therefore it is better to patch the source with a custom variable, and later replace it with the correct root path. Suggestion from : <https://lore.kernel.org/all/db5pr02mb102137939de6d43e423a9d29

[OE-core] [PATCH] systemd: sysusersd: change how the root home directory is set

2023-07-27 Thread Louis Rannou
d02.prod.outlook.com/> Signed-off-by: Louis Rannou Suggested-by: Peter Kjellerstedt --- ...usersd-Change-the-user-root-s-home-direct.patch | 32 ++ meta/recipes-core/systemd/systemd_253.3.bb | 11 2 files changed, 38 insertions(+), 5 deletions(-) diff --git

Re: [OE-core] [PATCH] util-linux: fix the pylibmount installation path

2023-06-30 Thread Louis Rannou
On 29/06/2023 16:04, Richard Purdie wrote: On Thu, 2023-06-29 at 15:50 +0200, Louis Rannou wrote: On 29/06/2023 14:59, Richard Purdie wrote: On Thu, 2023-06-29 at 12:37 +, Louis Rannou wrote: Append the install task to move the python library from ${base_libdir

Re: [OE-core] [PATCH] util-linux: fix the pylibmount installation path

2023-06-29 Thread Louis Rannou
On 29/06/2023 14:59, Richard Purdie wrote: On Thu, 2023-06-29 at 12:37 +, Louis Rannou wrote: Append the install task to move the python library from ${base_libdir} to ${PYTHON_SITEPACKAGES_DIR}. Signed-off-by: Louis Rannou --- As we install libraries of util-linux in ${base_libdir} (/lib

Re: [OE-core] [PATCH 2/3] systemd: replace the sysusers.d basic configuration

2023-06-29 Thread Louis Rannou
Hello, please find an answer to the last comment On 19/06/2023 14:10, Louis Rannou wrote: Hello, On 16/06/2023 18:51, Peter Kjellerstedt wrote: -Original Message- From: openembedded-core@lists.openembedded.org On Behalf Of Louis Rannou Sent: den 15 juni 2023 13:44 To: openembedded

[OE-core] [PATCH] util-linux: fix the pylibmount installation path

2023-06-29 Thread Louis Rannou
Append the install task to move the python library from ${base_libdir} to ${PYTHON_SITEPACKAGES_DIR}. Signed-off-by: Louis Rannou --- As we install libraries of util-linux in ${base_libdir} (/lib), the python library pylibmount is also installed there. An issue was raised when pylibmount

Re: [OE-core] [PATCH 3/3] base-passwd: add the wheel group

2023-06-19 Thread Louis Rannou
On 18/06/2023 11:37, Alexandre Belloni wrote: On 15/06/2023 13:43:55+0200, Louis Rannou wrote: The wheel group is not declared while it can be used to access the systemd journal and to configure printers in CUPS. It can also be used for su and sudo permissions. So far it was created later

Re: [OE-core] [PATCH 2/3] systemd: replace the sysusers.d basic configuration

2023-06-19 Thread Louis Rannou
Hello, On 16/06/2023 18:51, Peter Kjellerstedt wrote: -Original Message- From: openembedded-core@lists.openembedded.org On Behalf Of Louis Rannou Sent: den 15 juni 2023 13:44 To: openembedded-core@lists.openembedded.org Cc: Louis Rannou ; anuj.mit...@intel.com Subject: [OE-core

[OE-core] [PATCH 0/3] rootfs-postcommands: replace the sysusers.d postcommand

2023-06-15 Thread Louis Rannou
by default. Signed-off-by: Louis Rannou --- Louis Rannou (3): rootfs-postcommands: change sysusers.d command systemd: replace the sysusers.d basic configuration base-passwd: add the wheel group meta/classes-recipe/rootfs-postcommands.bbclass| 133 + .../b

[OE-core] [PATCH 1/3] rootfs-postcommands: change sysusers.d command

2023-06-15 Thread Louis Rannou
in the `/etc/passwd` and `/etc/group` of the target rootfs. Signed-off-by: Louis Rannou --- meta/classes-recipe/rootfs-postcommands.bbclass | 133 +++- 1 file changed, 109 insertions(+), 24 deletions(-) diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass b/meta/classes-recipe

[OE-core] [PATCH 2/3] systemd: replace the sysusers.d basic configuration

2023-06-15 Thread Louis Rannou
The default sysusers basic.conf.in file sets the root home directory to `/root` and does not permit its configuration. Replace the file delivered by systemd so the root home directory matches the `ROOT_HOME` variable. Signed-off-by: Louis Rannou --- meta/recipes-core/systemd/systemd

[OE-core] [PATCH 3/3] base-passwd: add the wheel group

2023-06-15 Thread Louis Rannou
The wheel group is not declared while it can be used to access the systemd journal and to configure printers in CUPS. It can also be used for su and sudo permissions. So far it was created later in the rootfs postcommand systemd_create_users. Signed-off-by: Louis Rannou --- .../base-passwd

Re: [OE-core] [RFC] incorrect parsing of sysusers.d in rootfs generation

2023-06-09 Thread Louis Rannou
Hello, below is a counter proposition including some work in the systemd recipe, On 08/06/2023 13:56, Louis Rannou wrote: On 08/06/2023 12:36, Richard Purdie wrote: On Thu, 2023-06-08 at 12:28 +0200, Louis Rannou wrote: Hello, On 08/06/2023 11:19, Richard Purdie wrote: On Wed, 2023-06

Re: [OE-core] [RFC] incorrect parsing of sysusers.d in rootfs generation

2023-06-08 Thread Louis Rannou
On 08/06/2023 12:36, Richard Purdie wrote: On Thu, 2023-06-08 at 12:28 +0200, Louis Rannou wrote: Hello, On 08/06/2023 11:19, Richard Purdie wrote: On Wed, 2023-06-07 at 17:16 +0200, Louis Rannou wrote: Hello again, a python solution could be one below. Also, I found that most of users

Re: [OE-core] [RFC] incorrect parsing of sysusers.d in rootfs generation

2023-06-08 Thread Louis Rannou
Hello, On 08/06/2023 11:19, Richard Purdie wrote: On Wed, 2023-06-07 at 17:16 +0200, Louis Rannou wrote: Hello again, a python solution could be one below. Also, I found that most of users/groups defined there are redundant as they already exist (such as root). I guess they are defined from

Re: [OE-core] [RFC] incorrect parsing of sysusers.d in rootfs generation

2023-06-07 Thread Louis Rannou
groupadd_command.extend(['--system', sname]) +subprocess.run(groupadd_command) +elif stype == 'm': +subprocess.run(['groupadd', '--root', IMAGE_ROOTFS, '--system', sid]) + subprocess.run(['useradd', '--root', IMAGE_ROOTFS

[OE-core] [RFC] incorrect parsing of sysusers.d in rootfs generation

2023-06-05 Thread Louis Rannou
he parsing should completely check the sysusers syntax as said in the manual (first field is [urgm], second is alphanum_-, etc.). In my opinion it should not as this will be made by the useradd command. Do you think it worth to add some testing about that ? I am not sure how to do that. Rega

Re: [OE-core] [PATCH v4 1/2] oeqa/utils/qemurunner: change the serial runner

2023-05-09 Thread Louis Rannou
On 05/05/2023 12:50, Richard Purdie wrote: On Fri, 2023-05-05 at 10:32 +, Ross Burton wrote: On 11 Apr 2023, at 16:05, Louis Rannou via lists.openembedded.org wrote: Create a new runner run_serial_socket which usage matches the traditional ssh runner. Its return status is 0 when

Re: [OE-core] [PATCH v4 1/2] oeqa/utils/qemurunner: change the serial runner

2023-04-18 Thread Louis Rannou
Hello Luca, You are correct, thanks ! Louis On 12/04/2023 09:57, Luca Ceresoli wrote: Hello Louis, On Tue, 11 Apr 2023 17:05:02 +0200 "Louis Rannou" wrote: [YOCTO #15021] Create a new runner run_serial_socket which usage matches the traditional ssh Nit: I'm not a native Engli

[OE-core] [PATCH v4 1/2] oeqa/utils/qemurunner: change the serial runner

2023-04-11 Thread Louis Rannou
. Signed-off-by: Louis Rannou --- meta/lib/oeqa/targetcontrol.py| 3 ++ meta/lib/oeqa/utils/qemurunner.py | 57 +++ 2 files changed, 60 insertions(+) diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index d686fe07ec..3707883da7 100644

[OE-core] [PATCH v4 2/2] oeqa/selftest: change deprecated usage of run_serial

2023-04-11 Thread Louis Rannou
Prefer the new function run_serial_socket. Change calls where the modification is easy. Signed-off-by: Louis Rannou --- meta/lib/oeqa/selftest/cases/debuginfod.py | 3 ++- meta/lib/oeqa/selftest/cases/gdbserver.py | 7 --- meta/lib/oeqa/selftest/cases/locales.py| 8 meta/lib

[OE-core] [PATCH v4 0/2] oeqa: Change the serial runner

2023-04-11 Thread Louis Rannou
call to run_serial to run_serial_socket. But that is not easy as each test can have a different manner to handle the exception. Therefore, the second patch only change dummy calls to the serial runner. Louis Rannou (2): oeqa/utils/qemurunner: change the serial runner oeqa/selftest: change

Re: [OE-core] [PATCH v3 2/2] oeqa/selftest: change deprecated usage of run_serial

2023-04-11 Thread Louis Rannou
://autobuilder.yoctoproject.org/typhoon/#builders/80/builds/4994/steps/14/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#builders/79/builds/5045/steps/15/logs/stdio Hello, Indeed, the overlayfs test was not supposed to remain in the commit Louis On 07/04/2023 16:26:22+0200, Louis Rannou wrote: Prefer

[OE-core] [PATCH v3 2/2] oeqa/selftest: change deprecated usage of run_serial

2023-04-07 Thread Louis Rannou
Prefer the new function run_serial_socket. Change calls where the modification is easy. Signed-off-by: Louis Rannou --- meta/lib/oeqa/selftest/cases/debuginfod.py | 3 +- meta/lib/oeqa/selftest/cases/gdbserver.py | 7 ++-- meta/lib/oeqa/selftest/cases/locales.py| 8 ++--- meta/lib/oeqa

[OE-core] [PATCH v3 1/2] oeqa/utils/qemurunner: change the serial runner

2023-04-07 Thread Louis Rannou
. Signed-off-by: Louis Rannou --- meta/lib/oeqa/targetcontrol.py| 3 ++ meta/lib/oeqa/utils/qemurunner.py | 57 +++ 2 files changed, 60 insertions(+) diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index d686fe07ec..3707883da7 100644

[OE-core] [PATCH v3 0/2] oeqa: Change the serial runner

2023-04-07 Thread Louis Rannou
call to run_serial to run_serial_socket. But that is not easy as each test can have a different manner to handle the exception. Therefore, the second patch only change dummy calls to the serial runner. Louis Rannou (2): oeqa/utils/qemurunner: change the serial runner oeqa/selftest: change

Re: [OE-core] [PATCH v2 0/1] Change the serial runner usage

2023-03-31 Thread Louis Rannou
On 29/03/2023 12:53, Richard Purdie wrote: On Fri, 2023-03-03 at 10:01 +0100, Louis Rannou wrote: The actual serial runner has a different usage compare to the ssh runner. The return status is different and failure are not raised as exceptions. Initially, I wanted to create a new

[OE-core] [PATCH v2 1/1] oeqa/utils/qemurunner: change the serial runner

2023-03-03 Thread Louis Rannou
. Signed-off-by: Louis Rannou --- meta/lib/oeqa/targetcontrol.py| 3 ++ meta/lib/oeqa/utils/qemurunner.py | 57 +++ 2 files changed, 60 insertions(+) diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index 1fdff82889..99fbcb5879 100644

[OE-core] [PATCH v2 0/1] Change the serial runner usage

2023-03-03 Thread Louis Rannou
call to run_serial to run_serial_socket. But that is not easy as each test can have a different manner to handle the exception. Therefore, this patch only suggest a new runner and add a comment to deprecate the former runner. Louis Rannou (1): oeqa/utils/qemurunner: change the serial runner

[OE-core] [PATCH 2/2] oeqa/utils/qemurunner: remove deprecated usage of run_serial

2023-02-16 Thread Louis Rannou
change tests to use the new serial runner run_serial_socket instead of the deprecated run_serial. Signed-off-by: Louis Rannou --- meta/lib/oeqa/runtime/cases/_qemutiny.py | 2 +- meta/lib/oeqa/selftest/cases/overlayfs.py| 20 meta/lib/oeqa/selftest/cases/package.py | 4

[OE-core] [PATCH 1/2] oeqa/utils/qemurunner: change the serial runner usage

2023-02-16 Thread Louis Rannou
. Signed-off-by: Louis Rannou --- meta/lib/oeqa/targetcontrol.py| 3 +++ meta/lib/oeqa/utils/qemurunner.py | 42 --- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index 1fdff82889

Re: [OE-core] [PATCH v2] oeqa/selftest/locales: Create selftest for locales generation

2023-02-03 Thread Louis Rannou
On 02/02/2023 14:58, Louis Rannou wrote: On 02/02/2023 11:53, Richard Purdie wrote: On Thu, 2023-02-02 at 11:41 +0100, Louis Rannou wrote: On 01/02/2023 18:57, Richard Purdie wrote: On Wed, 2023-02-01 at 16:02 +0100, Louis Rannou wrote: I was able to take a quick look at this. The locale

Re: [OE-core] [PATCH v2] oeqa/selftest/locales: Create selftest for locales generation

2023-02-02 Thread Louis Rannou
On 02/02/2023 11:53, Richard Purdie wrote: On Thu, 2023-02-02 at 11:41 +0100, Louis Rannou wrote: On 01/02/2023 18:57, Richard Purdie wrote: On Wed, 2023-02-01 at 16:02 +0100, Louis Rannou wrote: I was able to take a quick look at this. The locale generation on target is broken, it throws

Re: [OE-core] [PATCH v2] oeqa/selftest/locales: Create selftest for locales generation

2023-02-02 Thread Louis Rannou
On 01/02/2023 18:57, Richard Purdie wrote: On Wed, 2023-02-01 at 16:02 +0100, Louis Rannou wrote: On 01/02/2023 14:49, Richard Purdie wrote: On Fri, 2023-01-27 at 16:33 +0100, Louis Rannou wrote: From: Louis Rannou [YOCTO #9070] Add a new selftest to validate the locales generation

[OE-core] [PATCH v3] oeqa/selftest/locales: Create selftest for locales generation

2023-02-01 Thread Louis Rannou
From: Louis Rannou [YOCTO #9070] Add a new selftest to validate the locales generation. This selftest builds a complete target with GLIBC_GENERATE_LOCALES, IMAGE_LINGUAS, ENABLE_BINARY_LOCALE_GENERATION set. The tests has two cases: GLIBC_GENERATE_LOCALES=1 and GLIBC_GENERATE_LOCALES=0. When

Re: [OE-core] [PATCH v2] oeqa/selftest/locales: Create selftest for locales generation

2023-02-01 Thread Louis Rannou
On 01/02/2023 14:49, Richard Purdie wrote: On Fri, 2023-01-27 at 16:33 +0100, Louis Rannou wrote: From: Louis Rannou [YOCTO #9070] Add a new selftest to validate the locales generation. This selftest builds a complete target with GLIBC_GENERATE_LOCALES, IMAGE_LINGUAS

[OE-core] [PATCH v2] oeqa/selftest/locales: Create selftest for locales generation

2023-01-27 Thread Louis Rannou
From: Louis Rannou [YOCTO #9070] Add a new selftest to validate the locales generation. This selftest builds a complete target with GLIBC_GENERATE_LOCALES, IMAGE_LINGUAS, ENABLE_BINARY_LOCALE_GENERATION set. The tests has two cases: GLIBC_GENERATE_LOCALES=1 and GLIBC_GENERATE_LOCALES=0. When

Re: [OE-core] [PATCH] oeqa/selftest/locales: Create selftest for locales generation

2023-01-27 Thread Louis Rannou
On 26/01/2023 11:15, Richard Purdie wrote: On Thu, 2023-01-26 at 11:09 +0100, Louis Rannou wrote: On 26/01/2023 11:02, Richard Purdie wrote: On Wed, 2023-01-25 at 09:31 +0100, Louis Rannou wrote: From: Louis Rannou [YOCTO #9070] Add a new selftest to validate the locales generation

Re: [OE-core] [PATCH] oeqa/selftest/locales: Create selftest for locales generation

2023-01-26 Thread Louis Rannou
On 26/01/2023 11:02, Richard Purdie wrote: On Wed, 2023-01-25 at 09:31 +0100, Louis Rannou wrote: From: Louis Rannou [YOCTO #9070] Add a new selftest to validate the locales generation. This selftest builds a complete target with GLIBC_GENERATE_LOCALES, IMAGE_LINGUAS

[OE-core] [PATCH] oeqa/selftest/locales: Create selftest for locales generation

2023-01-25 Thread Louis Rannou
From: Louis Rannou [YOCTO #9070] Add a new selftest to validate the locales generation. This selftest builds a complete target with GLIBC_GENERATE_LOCALES, IMAGE_LINGUAS, ENABLE_BINARY_LOCALE_GENERATION set. The locales are tested through a ssh connection in three manners: checks if the locales