Re: [OE-core] devtool and multiconfig: Bug or feature?

2020-06-10 Thread Ricardo Ribalda
Hi Richard On Tue, Jun 9, 2020 at 11:46 AM Richard Purdie wrote: > > On Mon, 2020-06-08 at 16:40 +0200, Ricardo Ribalda wrote: > > Hi > > > > I am trying to use devtool in combination with multiconfig for the > > first time, so probably I am doing something wrong.

[OE-core] devtool and multiconfig: Bug or feature?

2020-06-08 Thread Ricardo Ribalda
the trick: @@ -145,6 +145,8 @@ def check_workspace_recipe(workspace, pn, checksrc=True, bbclassextend=False): is present. """ +pn = pn.split(":")[-1] + workspacepn = pn for recipe, value in workspace.items(): Any idea or documentat

[OE-core] [PATCH] classes/image_types_wic: Reorder do_flush_pseudodb

2020-05-18 Thread Ricardo Ribalda
multi images .wks with bitbake") Signed-off-by: Ricardo Ribalda --- meta/classes/image_types_wic.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/image_types_wic.bbclass b/meta/classes/image_types_wic.bbclass index 96ed0473ee..7b1db50a28 100644

Re: [OE-core] [PATCH] RFC wic: Support .wks files for multiple machines

2020-05-13 Thread Ricardo Ribalda
Hi Even if it does not cover all the use cases. Can we consider this patch? Thanks! On Sat, Apr 25, 2020 at 11:29 PM Ricardo Ribalda Delgado wrote: > > Hi Christopher > > On Fri, Apr 24, 2020 at 5:56 PM Christopher Larson wrote: > > > > This will only work the way

Re: [OE-core] [PATCH v7 00/10] Fix permissions and embed-rotofs

2020-04-25 Thread Ricardo Ribalda
Hi On Sat, Apr 25, 2020 at 11:29 PM Richard Purdie wrote: > > On Sat, 2020-04-25 at 23:25 +0200, Ricardo Ribalda Delgado wrote: > > I have also been working on the issue, and eventhought I have not > > been > > able to replicate locally the bug, the code insspection was

Re: [OE-core] [PATCH] RFC wic: Support .wks files for multiple machines

2020-04-25 Thread Ricardo Ribalda
ay this is just a RFC ;), so i am open to any implementation. I would love to hear your thoughts Best regards > On Fri, Apr 24, 2020 at 6:30 AM Ricardo Ribalda > wrote: >> >> If you want to make a disk image containing rootfs for different >> machines, the only way to do i

Re: [OE-core] [PATCH v7 00/10] Fix permissions and embed-rotofs

2020-04-25 Thread Ricardo Ribalda
Hi Richard Thanks for the update! On Sat, Apr 25, 2020 at 11:07 PM Richard Purdie wrote: > > On Thu, 2020-04-23 at 15:17 +0200, Ricardo Ribalda Delgado wrote: > > On my setup, using debian crops the error is even different :( > > > > If you want I can keep trying, othe

[OE-core] [PATCH] RFC wic: Support .wks files for multiple machines

2020-04-24 Thread Ricardo Ribalda
[mcdepends], all the dependencies are automatically handled. This patch makes wic aware of the machine to use. Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/misc.py | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/lib/wic/misc.py b/scripts

Re: [OE-core] [PATCH v7 00/10] Fix permissions and embed-rotofs

2020-04-23 Thread Ricardo Ribalda
On Thu, Apr 23, 2020 at 3:23 PM Richard Purdie wrote: > > On Thu, 2020-04-23 at 15:17 +0200, Ricardo Ribalda Delgado wrote: > > On my setup, using debian crops the error is even different :( > > > > If you want I can keep trying, otherwise I will leave it to the > >

Re: [OE-core] [PATCH v7 00/10] Fix permissions and embed-rotofs

2020-04-23 Thread Ricardo Ribalda
u may need to enable TUN (e.g. sudo modprobe tun) runqemu - INFO - Cleaning up Sending SIGTERM to runqemu Qemu ended unexpectedly, dump data from host is in /workdir/build-st/tmp/log/runtime-hostdump/202004231306_qemu ---------- 2

Re: [OE-core] [PATCH v7 00/10] Fix permissions and embed-rotofs

2020-04-23 Thread Ricardo Ribalda
On Thu, Apr 23, 2020 at 12:45 PM Richard Purdie wrote: > > On Thu, 2020-04-23 at 11:57 +0200, Ricardo Ribalda Delgado wrote: > > Hi Richard > > > > Thanks for the test. > > > > All the errors seem to have the same pattern: > > > > FileNotFoundError:

Re: [OE-core] [PATCH v7 00/10] Fix permissions and embed-rotofs

2020-04-23 Thread Ricardo Ribalda
gards! On Thu, Apr 23, 2020 at 10:54 AM Richard Purdie wrote: > > On Sun, 2020-04-19 at 08:35 +0200, Ricardo Ribalda wrote: > > > > Changelog v6->v7 (Thanks Paul): > > - Use passwd instead of shadow for oetests > > - For pseudo folder inside workdir > >

[OE-core] [PATCH v7 05/10] wic: Avoid creating invalid pseudo directory

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado If the source of the rootfs is not a bitbake cooked image, or it is not pointing to the root of one, we call pseudo again, which will produce a new pseudo folder at rootfs/../pseudo Eg: part /etc --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/home --fstype=ext4 Cc

[OE-core] [PATCH v7 00/10] Fix permissions and embed-rotofs

2020-04-18 Thread Ricardo Ribalda
- Use line number on tar name - Allow include-files of files in workdir Changelog v5->v6: - Allow two arguments to include-path - Fix permission on include-path - exec_native with ASSUME_PROVIDED - More unittesting Changelog v4->v5: - Add unittesting - wic: Avoid creating inval

[OE-core] [PATCH v7 01/10] wic: Fix permissions when using exclude or include path

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado When parameters include_path or exclude_path are passed to the rootfs plugin, it will copy the partition content into a folder and make all the modifications there. This is done using copyhardlinktree(), which does not take into consideration the content of the

[OE-core] [PATCH v7 09/10] wic: rootfs: Combine path_validation in one function

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado Combine all the common path validation in a function to avoid code duplication. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/plugins/source/rootfs.py | 41 +++- 1 file changed, 19 insertions(+), 22 deletions

[OE-core] [PATCH v7 10/10] oeqa: wic: Add more tests for include_path

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado Make sure permissions are respected. Add new test for orig/destination option. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- meta/lib/oeqa/selftest/cases/wic.py | 63 - 1 file changed, 62 insertions(+), 1 deletion

[OE-core] [PATCH v7 02/10] wic: Fix multi images .wks with bitbake

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado In order to support .wks files with multiple images inside bitbake we need to explicitly set the pseudo database in use. Eg: If we try this .mks: part / --source rootfs --ondisk sda --fstype=ext4 part /export --source rootfs --rootfs=core-image-minimal-mtdutils

[OE-core] [PATCH v7 08/10] wic: root: Add an opt. destination on include-path

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado Allow specifying an optional destination to include-path and make the option aware of permissions and owners. It is very useful for making a partition that contains the rootfs for a host and a target Eg: / -> Roofs for the host /export/ -> Rootfs for the

[OE-core] [PATCH v7 06/10] oeqa: wic: Add tests for permissions and change-directory

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado Make sure that the permissions and username are respected when using all the rootfs modifiers. Add tests for change-directory command Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- meta/lib/oeqa/selftest/cases/wic.py | 90

[OE-core] [PATCH v7 07/10] wic: misc: Do not find for executables in ALREADY_PROVIDED

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado Executables like tar won't be available on the native sysroot, as they are part of the ALREADY_PROVIDED variable. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/misc.py | 14 -- 1 file changed, 12 insertions(

[OE-core] [PATCH v7 04/10] wic: Continue if excluded_path does not exist

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado If an excuded path does not exist, continue without an error. This allows to seamleasly reuse .wks among different projects. Eg: part / --source rootfs --fstype=ext4 --exclude-path=opt/private_keys Where /opt/private_keys in only populated by some of the image.bb

[OE-core] [PATCH v7 03/10] wic: Add --change-directory argument

2020-04-18 Thread Ricardo Ribalda
From: Ricardo Ribalda Delgado This option allows to specify which part of a rootfs is going to be included, the same way the -C argument on tar. Thanks to this option we can make sure the permissions and usernames on the target partition are respected, and also simplify the creation of splitted

Re: [OE-core] [PATCH v6 10/10] oeqa: wic: Add more tests for include_path

2020-04-18 Thread Ricardo Ribalda
Hi again On Sat, Apr 18, 2020 at 10:16 PM Ricardo Ribalda via lists.openembedded.org wrote: > > Hi Paul > > > > On Sat, Apr 18, 2020 at 10:10 PM Paul Barker wrote: > > > > On Tue, 14 Apr 2020 15:36:14 +0200 > > Ricardo Ribalda Delgado wrote: > >

Re: [OE-core] [PATCH v6 10/10] oeqa: wic: Add more tests for include_path

2020-04-18 Thread Ricardo Ribalda
Hi Paul On Sat, Apr 18, 2020 at 10:10 PM Paul Barker wrote: > > On Tue, 14 Apr 2020 15:36:14 +0200 > Ricardo Ribalda Delgado wrote: > > > Make sure permissions are respected. > > > > Add new test for orig/destination option. > > > > Cc: Paul Barker

[OE-core] [PATCH v6 00/10] Fix permissions and embed-rotofs

2020-04-14 Thread Ricardo Ribalda
ing Changelog v4->v5: - Add unittesting - wic: Avoid creating invalid pseudo directory Ricardo Ribalda Delgado (10): wic: Fix permissions when using exclude or include path wic: Fix multi images .wks with bitbake wic: Add --change-directory argument wic: Continue if excluded_path doe

[OE-core] [PATCH v6 06/10] oeqa: wic: Add tests for permissions and change-directory

2020-04-14 Thread Ricardo Ribalda
Make sure that the permissions and username are respected when using all the rootfs modifiers. Add tests for change-directory command Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- meta/lib/oeqa/selftest/cases/wic.py | 91 + 1 file changed, 91

[OE-core] [PATCH v6 03/10] wic: Add --change-directory argument

2020-04-14 Thread Ricardo Ribalda
invoke external vars or using .wks.in files. Eg: part / --source rootfs --ondisk sda --fstype=ext4 --exclude-path=etc/    part /etc --source rootfs --fstype=ext4 --change-directory=etc Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/help.py | 6

[OE-core] [PATCH v6 09/10] wic: rootfs: Combine path_validation in one function

2020-04-14 Thread Ricardo Ribalda
Combine all the common path validation in a function to avoid code duplication. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/plugins/source/rootfs.py | 41 +++- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/scripts/lib/wic

[OE-core] [PATCH v6 02/10] wic: Fix multi images .wks with bitbake

2020-04-14 Thread Ricardo Ribalda
the files under /export will be set to the runner of bitbake (usually UID 1000). Before we run wic, we need to make sure that the pseudo database will be flushed, and contains all the data needed. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- meta/classes/image_types_wic.bbclass

[OE-core] [PATCH v6 04/10] wic: Continue if excluded_path does not exist

2020-04-14 Thread Ricardo Ribalda
-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/plugins/source/rootfs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py index c831829398..1d21ec2252 100644 --- a/scripts/lib/wic

[OE-core] [PATCH v6 01/10] wic: Fix permissions when using exclude or include path

2020-04-14 Thread Ricardo Ribalda
aul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/partition.py | 7 +++-- scripts/lib/wic/plugins/source/rootfs.py | 36 ++-- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partitio

[OE-core] [PATCH v6 10/10] oeqa: wic: Add more tests for include_path

2020-04-14 Thread Ricardo Ribalda
Make sure permissions are respected. Add new test for orig/destination option. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- meta/lib/oeqa/selftest/cases/wic.py | 64 - 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa

[OE-core] [PATCH v6 07/10] wic: misc: Do not find for executables in ALREADY_PROVIDED

2020-04-14 Thread Ricardo Ribalda
Executables like tar won't be available on the native sysroot, as they are part of the ALREADY_PROVIDED variable. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/misc.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/script

[OE-core] [PATCH v6 08/10] wic: root: Add an opt. destination on include-path

2020-04-14 Thread Ricardo Ribalda
xport/ --include-path hello on the .wks file. Cc: Paul Barker Signed-off-by: Ricardo Ribalda Delgado --- meta/recipes-core/meta/wic-tools.bb | 2 +- scripts/lib/wic/help.py | 20 + scripts/lib/wic/ksparser.py | 2 +- scripts/lib/wic/plugins/sourc

[OE-core] [PATCH v6 05/10] wic: Avoid creating invalid pseudo directory

2020-04-14 Thread Ricardo Ribalda
: Ricardo Ribalda Delgado --- scripts/lib/wic/partition.py | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 3240be072a..7d9dd616a6 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic

[OE-core] [PATCH v5 1/6] wic: Fix permissions when using exclude or include path

2020-04-09 Thread Ricardo Ribalda
aul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/partition.py | 7 +++-- scripts/lib/wic/plugins/source/rootfs.py | 36 ++-- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partitio

[OE-core] [PATCH v5 0/6] wic: Fix permissions

2020-04-09 Thread Ricardo Ribalda
tc --source rootfs --fstype=ext4 --change-directory=/etc Wich works fine from bitbake and from cmdline, and has the same functionality as split_partition. Changelog v4->v5: - Add unittesting - wic: Avoid creating invalid pseudo directory Ricardo Ribalda Delgado (6): wic: Fix permissions

[OE-core] [PATCH v5 3/6] wic: Add --change-directory argument

2020-04-09 Thread Ricardo Ribalda
invoke external vars or using .wks.in files. Eg: part / --source rootfs --ondisk sda --fstype=ext4 --exclude-path=etc/    part /etc --source rootfs --fstype=ext4 --change-directory=/etc Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/help.py | 6 ++ scripts/lib/wic

[OE-core] [PATCH v5 2/6] wic: Fix multi images .wks with bitbake

2020-04-09 Thread Ricardo Ribalda
the files under /export will be set to the runner of bitbake (usually UID 1000). Before we run wic, we need to make sure that the pseudo database will be flushed, and contains all the data needed. Signed-off-by: Ricardo Ribalda Delgado --- meta/classes/image_types_wic.bbclass | 8

[OE-core] [PATCH v5 5/6] wic: Avoid creating invalid pseudo directory

2020-04-09 Thread Ricardo Ribalda
If the source of the rootfs is not a bitbake cooked image, or it is not pointing to the root of one, we call pseudo again, which will produce a new pseudo folder at rootfs/../pseudo Eg: part /etc --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/home --fstype=ext4 Signed-off-by: Ricardo Ribalda

[OE-core] [PATCH v5 6/6] oeqa: wic: Add tests for permissions and change-directory

2020-04-09 Thread Ricardo Ribalda
Make sure that the permissions and username are respected when using all the rootfs modifiers. Add tests for checnage-directory command Signed-off-by: Ricardo Ribalda Delgado --- meta/lib/oeqa/selftest/cases/wic.py | 91 + 1 file changed, 91 insertions(+) diff

[OE-core] [PATCH v5 4/6] wic: Continue if excluded_path does not exist

2020-04-09 Thread Ricardo Ribalda
If an excuded path does not exist, continue without an error. This allows to seamleasly reuse .wks among different projects. Eg: part / --source rootfs --fstype=ext4 --exclude-path=/opt/private_keys Where /opt/private_keys in only populated by some of the image.bb files. Signed-off-by: Ricardo

Re: [OE-core] [PATCH v4 0/4] wic: Fix permissions

2020-04-09 Thread Ricardo Ribalda
Hi Paul On Thu, Apr 9, 2020 at 1:10 PM Paul Barker wrote: > > On Thu, 9 Apr 2020 12:49:47 +0200 > Ricardo Ribalda Delgado wrote: > > > Hi > > > > > > Today wic behaves differently if we run it from bitbake of directly from the > > commandline

[OE-core] [PATCH v4 1/4] wic: Fix permissions when using exclude or include path

2020-04-09 Thread Ricardo Ribalda
aul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/partition.py | 7 +++-- scripts/lib/wic/plugins/source/rootfs.py | 36 ++-- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partitio

[OE-core] [PATCH v4 4/4] wic: Continue if excluded_path does not exist

2020-04-09 Thread Ricardo Ribalda
If an excuded path does not exist, continue without an error. This allows to seamleasly reuse .wks among different projects. Eg: part / --source rootfs --fstype=ext4 --exclude-path=/opt/private_keys Where /opt/private_keys in only populated by some of the image.bb files. Signed-off-by: Ricardo

[OE-core] [PATCH v4 3/4] wic: Add --change-directory argument

2020-04-09 Thread Ricardo Ribalda
invoke external vars or using .wks.in files. Eg: part / --source rootfs --ondisk sda --fstype=ext4 --exclude-path=etc/    part /etc --source rootfs --fstype=ext4 --change-directory=/etc Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/help.py | 6 ++ scripts/lib/wic

[OE-core] [PATCH v4 0/4] wic: Fix permissions

2020-04-09 Thread Ricardo Ribalda
tc --source rootfs --fstype=ext4 --change-directory=/etc Wich works fine from bitbake and from cmdline, and has the same functionality as split_partition. Ricardo Ribalda Delgado (4): wic: Fix permissions when using exclude or include path wic: Fix multi images .wks with bitbake wic: Add

[OE-core] [PATCH v4 2/4] wic: Fix multi images .wks with bitbake

2020-04-09 Thread Ricardo Ribalda
the files under /export will be set to the runner of bitbake (usually UID 1000). Before we run wic, we need to make sure that the pseudo database will be flushed, and contains all the data needed. Signed-off-by: Ricardo Ribalda Delgado --- meta/classes/image_types_wic.bbclass | 8

Re: [OE-core] [PATCH v2 2/2] wic: Add --embed-rootfs argument

2020-04-08 Thread Ricardo Ribalda
Hi Again On Tue, Apr 7, 2020 at 8:19 PM Ricardo Ribalda via lists.openembedded.org wrote: > > Hi Paul > > Yes it got merged > https://git.openembedded.org/openembedded-core/commit/?id=efdcf94801f6abe8e4099e324d9a3deccd8d4384 > > Even though the functionality looks similar

[OE-core] [PATCH v3 1/2] wic: Fix permissions when using exclude or include path

2020-04-08 Thread Ricardo Ribalda
aul Barker Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/partition.py | 7 +++-- scripts/lib/wic/plugins/source/rootfs.py | 35 +--- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partitio

[OE-core] [PATCH v3 2/2] wic: Continue if excluded_path does not exist

2020-04-08 Thread Ricardo Ribalda
If an excuded path does not exist, continue without an error. This allows to seamleasly reuse .wks among different projects. Eg: part / --source rootfs --fstype=ext4 --exclude-path=/opt/private_keys Where /opt/private_keys in only populated by some of the image.bb files. Signed-off-by: Ricardo

Re: [OE-core] [PATCH 1/2] wic: Fix permissions when using exclude or include path

2020-04-07 Thread Ricardo Ribalda
Hi On Tue, Apr 7, 2020 at 9:02 PM Paul Barker wrote: > > On Tue, 7 Apr 2020 20:40:18 +0200 > Ricardo Ribalda Delgado wrote: > > > Hi Paul > > > > Thanks for your review, It has been already merged, but if there is > > something wrong we can s

Re: [OE-core] [PATCH 1/2] wic: Fix permissions when using exclude or include path

2020-04-07 Thread Ricardo Ribalda
r 2020 21:53:39 +0200 > Ricardo Ribalda Delgado wrote: > > > ping? > > I think that '../pseudo' should not be used here. I'll explain inline... > > > > > > > This results in a rootfs owned by the user that is running the wic > >

Re: [OE-core] [PATCH v2 2/2] wic: Add --embed-rootfs argument

2020-04-07 Thread Ricardo Ribalda
020 21:52:52 +0200 > Ricardo Ribalda Delgado wrote: > > > ping? > > I'm still concerned that `--embed-rootfs` and `--include-path` are too > similar and we should instead have one option that can handle both use cases. > > Has this already been merged? > >

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-06 Thread Ricardo Ribalda
Hi On Mon, Apr 6, 2020 at 11:04 AM Ricardo Ribalda via lists.openembedded.org wrote: > > Hi > > On Mon, Apr 6, 2020 at 11:00 AM Richard Purdie > wrote: > > > > On Sun, 2020-04-05 at 17:44 +0200, Ricardo Ribalda Delgado wrote: > > > Hi Richard > > >

[OE-core] [PATCH] pseudo: On a DB fixup remove files that do not exist anymore

2020-04-06 Thread Ricardo Ribalda
From: Ricardo Ribalda If the user decides to fix a database, remove the files that do not exist anymore. If only DB test is selected do not change the behaviour (return error). Signed-off-by: Ricardo Ribalda --- pseudo.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-06 Thread Ricardo Ribalda
Hi On Mon, Apr 6, 2020 at 11:00 AM Richard Purdie wrote: > > On Sun, 2020-04-05 at 17:44 +0200, Ricardo Ribalda Delgado wrote: > > Hi Richard > > > > Thanks for testing it out. Seems that I am either not very clever or > > I > > should not work on Sundays (or

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-05 Thread Ricardo Ribalda
replicate the bug. As we speak I am running oe-selftest--run-tests wic.Wic on poky/fedora-30... Thanks, and sorry again. On Sun, Apr 5, 2020 at 5:29 PM Richard Purdie wrote: > > On Sun, 2020-04-05 at 14:01 +0200, Ricardo Ribalda Delgado wrote: > > Ups, wrong version > > &

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-05 Thread Ricardo Ribalda
Ups, wrong version This is the one, sorry. On Sun, Apr 5, 2020 at 1:53 PM Ricardo Ribalda Delgado wrote: > > Hi Richard > > > On Sun, Apr 5, 2020 at 1:04 PM Richard Purdie > wrote: > > > > On Sun, 2020-04-05 at 11:56 +0200, Ricardo Ribalda Delgado wrote: >

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-05 Thread Ricardo Ribalda
Hi Richard On Sun, Apr 5, 2020 at 1:04 PM Richard Purdie wrote: > > On Sun, 2020-04-05 at 11:56 +0200, Ricardo Ribalda Delgado wrote: > > Hi Richard > > > > I have tried with master (0c91fcba446418ad1f71d3df9aa3b186bbd353c7) > > + > > my two patches. >

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-05 Thread Ricardo Ribalda
passed (successes=1, skipped=0, failures=0, errors=0) I will start a test with mater-next + my two patches. Hopefuly I can replicate the bug. It is a bit weird that only crashes on fedora and not on the other distros :S Thanks again On Sun, Apr 5, 2020 at 9:21 AM Ricardo Ribalda via lists.ope

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-05 Thread Ricardo Ribalda
Hi Richard It looks pretty much related to my patch. Will try to replicate locally and fix it. Thanks! On Sun, 5 Apr 2020, 09:01 Richard Purdie, < richard.pur...@linuxfoundation.org> wrote: > On Wed, 2020-03-04 at 15:49 +0100, Ricardo Ribalda Delgado wrote: > > When parameters

Re: [OE-core] [PATCH 1/2] wic: Fix permissions when using exclude or include path

2020-04-03 Thread Ricardo Ribalda
ping? On Thu, Mar 5, 2020 at 10:46 AM Ricardo Ribalda Delgado wrote: > > Hi Paul > > On Thu, Mar 5, 2020 at 10:32 AM Paul Barker wrote: > > > > On Wed, 4 Mar 2020 11:02:47 +0100 > > Ricardo Ribalda Delgado wrote: > > > > > Hi Paul > > > &g

Re: [OE-core] [PATCH v2 2/2] wic: Add --embed-rootfs argument

2020-04-03 Thread Ricardo Ribalda
ping? On Thu, Mar 5, 2020 at 1:26 PM Ricardo Ribalda Delgado wrote: > > Hi Paul, > > On Thu, Mar 5, 2020 at 10:37 AM Paul Barker wrote: > > > > On Wed, 4 Mar 2020 15:49:36 +0100 > > Ricardo Ribalda Delgado wrote: > > > > > This option adds the cont

Re: [OE-core] [PATCH v2 2/2] wic: Add --embed-rootfs argument

2020-03-05 Thread Ricardo Ribalda Delgado
Hi Paul, On Thu, Mar 5, 2020 at 10:37 AM Paul Barker wrote: > > On Wed, 4 Mar 2020 15:49:36 +0100 > Ricardo Ribalda Delgado wrote: > > > This option adds the content of a rootfs on a specific location on the > > rootfs. > > > > It is very useful for making

Re: [OE-core] [PATCH 1/2] wic: Fix permissions when using exclude or include path

2020-03-05 Thread Ricardo Ribalda Delgado
Hi Paul On Thu, Mar 5, 2020 at 10:32 AM Paul Barker wrote: > > On Wed, 4 Mar 2020 11:02:47 +0100 > Ricardo Ribalda Delgado wrote: > > > Hi Paul > > > > On Wed, Mar 4, 2020 at 10:53 AM Paul Barker wrote: > > > > > > On Wed, 4 Mar 2020 09:

[OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-03-04 Thread Ricardo Ribalda Delgado
database using the "pseudo -B" command. Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/plugins/source/rootfs.py | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source

[OE-core] [PATCH v2 2/2] wic: Add --embed-rootfs argument

2020-03-04 Thread Ricardo Ribalda Delgado
. Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/help.py | 8 scripts/lib/wic/ksparser.py | 1 + scripts/lib/wic/partition.py | 1 + scripts/lib/wic/plugins/source/rootfs.py | 22 +- 4 files changed, 31

Re: [OE-core] [PATCH 2/2] wic: Add --embed-rootfs argument

2020-03-04 Thread Ricardo Ribalda Delgado
Hi Paul On Wed, Mar 4, 2020 at 11:14 AM Ricardo Ribalda Delgado wrote: > > Hi Paul > > On Wed, Mar 4, 2020 at 11:09 AM Paul Barker wrote: > > > > On Wed, 4 Mar 2020 10:56:20 +0100 > > Ricardo Ribalda Delgado wrote: > > > > > Hi Paul > > >

Re: [OE-core] [PATCH 2/2] wic: Add --embed-rootfs argument

2020-03-04 Thread Ricardo Ribalda Delgado
Hi Paul On Wed, Mar 4, 2020 at 11:09 AM Paul Barker wrote: > > On Wed, 4 Mar 2020 10:56:20 +0100 > Ricardo Ribalda Delgado wrote: > > > Hi Paul > > > > Thanks for your reply > > > > On Wed, Mar 4, 2020 at 10:43 AM Paul Barker wrote: > > > >

Re: [OE-core] [PATCH 1/2] wic: Fix permissions when using exclude or include path

2020-03-04 Thread Ricardo Ribalda Delgado
Hi Paul On Wed, Mar 4, 2020 at 10:53 AM Paul Barker wrote: > > On Wed, 4 Mar 2020 09:34:37 +0100 > Ricardo Ribalda Delgado wrote: > > > When parameters include_path or exclude_path are passed to the rootfs > > plugin, it will copy the partition content into a fol

Re: [OE-core] [PATCH 2/2] wic: Add --embed-rootfs argument

2020-03-04 Thread Ricardo Ribalda Delgado
Hi Paul Thanks for your reply On Wed, Mar 4, 2020 at 10:43 AM Paul Barker wrote: > > On Wed, 4 Mar 2020 09:34:38 +0100 > Ricardo Ribalda Delgado wrote: > > > This option adds the content of a rootfs on a specific location on the > > rootfs. > > > > It i

[OE-core] [PATCH 2/2] wic: Add --embed-rootfs argument

2020-03-04 Thread Ricardo Ribalda Delgado
king a partition for "/export" this might not be compatible with some upgrade systems, or we might be limited by the number of partitions. With this patch we can use something like: part / --source rootfs --embed-rootfs=target-image:/export on the .wks file. Signed-off-by: Ricardo Ribalda Delga

[OE-core] [PATCH 1/2] wic: Fix permissions when using exclude or include path

2020-03-04 Thread Ricardo Ribalda Delgado
database using the "pseudo -B" command. Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/plugins/source/rootfs.py | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source

Re: [OE-core] Best practices: Multiple images on one partition.

2020-01-16 Thread Ricardo Ribalda Delgado
at 13:05, Ricardo Ribalda Delgado > wrote: > > > > Hello > > > > I am trying to figure out the best way to achieve this. I have a > > system with a host and a target. The target netboots form the host and > > have a different package architecture. > > &g

[OE-core] Best practices: Multiple images on one partition.

2020-01-15 Thread Ricardo Ribalda Delgado
not aware :) Thanks! -- Ricardo Ribalda -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

Re: [OE-core] [PATCH 0/2] Avoid build failures due to setscene errors

2020-01-09 Thread Ricardo Ribalda Delgado
e if it's reporting failure only because of these setscene fetcher > failures. > > If someone needs similar work around for bitbake behavior, here is what I did: > https://github.com/webOS-ports/jenkins-jobs/pull/12 > yes, it's ugly, but it seems to work and is a bit better

[OE-core] [PATCH] i2c-tools: Add missing RDEPEND

2019-10-17 Thread Ricardo Ribalda Delgado
ecode-dimms line 41. BEGIN failed--compilation aborted at /usr/bin/decode-dimms line 41. root@qt5222:~# apt-get install perl-module-carp Signed-off-by: Ricardo Ribalda Delgado --- meta/recipes-devtools/i2c-tools/i2c-tools_4.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-dev

[OE-core] [PATCH v2] inetutils: Fix abort on invalid files

2019-08-07 Thread Ricardo Ribalda Delgado
, and also inetutils have been posted with the proposed patch. Without this patch, pxelinux fails to boot because it keeps asking the server for the pxelinux.cfg/00-01-02-03-04 and never jumps to /default. Signed-off-by: Ricardo Ribalda Delgado --- .../inetutils/fix-buffer-fortify-tfpt.pa

Re: [OE-core] OEDEM 2019

2019-07-31 Thread Ricardo Ribalda Delgado
If there are enough people interested it would be great a BoF, even if it is "unofficial" On Wed, Jul 31, 2019 at 6:45 PM Philip Balister wrote: > > On 07/31/2019 05:48 AM, Ricardo Ribalda Delgado wrote: > > BTW, Is there anything for Embedded Recipes or Plumbers? >

Re: [OE-core] OEDEM 2019

2019-07-31 Thread Ricardo Ribalda Delgado
ted yet and I didn't find > > any news in mailing lists yet: > > https://www.openembedded.org/wiki/OEDEM_2019 > > > > Thanks, > > Ruslan > > > -- > ___ > Openembedded-core mailing list > Openemb

Re: [OE-core] [meta-oe][PATCH v2] fwts: Update to 19.06.00

2019-07-30 Thread Ricardo Ribalda Delgado
ping? On Tue, Jul 23, 2019 at 10:04 PM Ricardo Ribalda Delgado wrote: > > Update to latest release. > > Since version 18.08.00, libbsd is a dependency: > https://wiki.ubuntu.com/FirmwareTestSuite/ReleaseNotes/18.08.00 > > Signed-off-by: Ricardo Ribalda Delgado > ---

Re: [OE-core] [PATCH] inetutils: Fix abort on invalid files

2019-07-30 Thread Ricardo Ribalda Delgado
ping? On Fri, Jul 19, 2019 at 8:12 AM Ricardo Ribalda Delgado wrote: > > Hi Khem > > Indeed is due to that, but infortunately it is part of arpa/tftp.h . > So the propossed solutionI believe that it is simpler. > > https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > &g

Re: [OE-core] [PATCH] packagegroup-core-base-utils: Make it machine specific

2019-07-25 Thread Ricardo Ribalda Delgado
gegroup-core-base-utils.bb sets > PACKAGE_ARCH before inherit packagegroup > done. > > https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/879/steps/8/logs/step6b > > Thanks, > > Anuj > > On Tue, 2019-07-23 at 14:37 +0200, Ricardo Ribalda Delgado

[OE-core] [PATCH v2] packagegroup-core-base-utils: Make it machine specific

2019-07-25 Thread Ricardo Ribalda Delgado
do_package_qa_setscene () { *** 1026:sstate_setscene(d) 1027:} 1028:addtask do_package_qa_setscene 1029: 1030:python do_qa_staging() { Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Richard Purdie --- v2: Swap order of PACKAGE_ARCH = "${MACHINE_ARCH}" and i

[OE-core] [meta-oe][PATCH v2] fwts: Update to 19.06.00

2019-07-23 Thread Ricardo Ribalda Delgado
Update to latest release. Since version 18.08.00, libbsd is a dependency: https://wiki.ubuntu.com/FirmwareTestSuite/ReleaseNotes/18.08.00 Signed-off-by: Ricardo Ribalda Delgado --- .../fwts/0001-Remove-Werror-from-build.patch | 22 ++--- ...t-logical-operand-warning-with-clang.patch | 84

[OE-core] [meta-oe][PATCH] fwts: Update to 19.06.00

2019-07-23 Thread Ricardo Ribalda Delgado
Update to latest release. Signed-off-by: Ricardo Ribalda Delgado --- .../fwts/0001-Remove-Werror-from-build.patch | 22 ++--- ...t-logical-operand-warning-with-clang.patch | 84 --- .../fwts/{fwts_git.bb => fwts_19.06.00.bb}| 11 +-- 3 files changed, 15 insertions(+),

[OE-core] [PATCH] packagegroup-core-base-utils: Make it machine specific

2019-07-23 Thread Ricardo Ribalda Delgado
do_package_qa_setscene () { *** 1026:sstate_setscene(d) 1027:} 1028:addtask do_package_qa_setscene 1029: 1030:python do_qa_staging() { Signed-off-by: Ricardo Ribalda Delgado --- .../packagegroups/packagegroup-core-base-utils.bb | 2 ++ 1 file changed, 2 insertion

Re: [OE-core] [PATCH] inetutils: Fix abort on invalid files

2019-07-18 Thread Ricardo Ribalda Delgado
gt; On Thu, Jul 18, 2019 at 2:10 PM Ricardo Ribalda Delgado > wrote: > > > > Hi Khem > > > > I think the issue is that __memcpy_chk wrongly assume that the target > > size is 0. The origin size is calculated fine: > > > > https://godbolt.org/z/qTaDWP >

Re: [OE-core] [PATCH] inetutils: Fix abort on invalid files

2019-07-18 Thread Ricardo Ribalda Delgado
Hi Khem I think the issue is that __memcpy_chk wrongly assume that the target size is 0. The origin size is calculated fine: https://godbolt.org/z/qTaDWP Thanks! On Thu, Jul 18, 2019 at 11:02 PM Khem Raj wrote: > > On Thu, Jul 18, 2019 at 12:46 PM Ricardo Ribalda Delgado &g

[OE-core] [PATCH] inetutils: Fix abort on invalid files

2019-07-18 Thread Ricardo Ribalda Delgado
, and also inetutils have been posted with the proposed patch. Without this patch, pxelinux fails to boot because it keeps asking the server for the pxelinux.cfg/00-01-02-03-04 and never jumps to /default. Signed-off-by: Ricardo Ribalda Delgado --- .../inetutils/fix-buffer-fortify-tfpt.pa

[OE-core] [PATCH] wic: Fix (again) partition files UIDs on multi rootfs images

2019-07-18 Thread Ricardo Ribalda Delgado
is killed before finishing. Signed-off-by: Ricardo Ribalda Delgado --- scripts/lib/wic/plugins/imager/direct.py | 37 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py

[OE-core] [PATCH v2] systemd: Fix interface bring-up on kernels >= 5.2

2019-07-15 Thread Ricardo Ribalda Delgado
-by: Ricardo Ribalda Delgado --- .../systemd/0001-networkd-fix-link-up.patch | 66 + .../0002-network-do-not-send-ipv6.patch | 96 +++ meta/recipes-core/systemd/systemd_242.bb | 2 + 3 files changed, 164 insertions(+) create mode 100644 meta/recipes-core/syst

[OE-core] [PATCH] nfs-mountd: Add missing dependency on systemd service

2019-07-15 Thread Ricardo Ribalda Delgado
-by: Ricardo Ribalda Delgado --- meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service index 27ea58d366

Re: [OE-core] [PATCH] systemd: Fix interface bring-up on kernels >= 5.2

2019-07-09 Thread Ricardo Ribalda Delgado
Hi Alex That would also be ok. Is this already on a released version or is only on the "master" branch? On Tue, Jul 9, 2019 at 1:12 PM Alex Kiernan wrote: > > On Tue, Jul 9, 2019 at 9:43 AM Ricardo Ribalda Delgado > wrote: > > > > With kernels >=5.2 syst

[OE-core] [PATCH] systemd: Fix interface bring-up on kernels >= 5.2

2019-07-09 Thread Ricardo Ribalda Delgado
-by: Ricardo Ribalda Delgado --- .../systemd/0001-networkd-fix-link-up.patch | 66 + .../0002-network-do-not-send-ipv6.patch | 96 +++ meta/recipes-core/systemd/systemd_242.bb | 2 + 3 files changed, 164 insertions(+) create mode 100644 meta/recipes-core/syst

Re: [OE-core] [PATCH v2] systemd-bootconf: Make is machine specific

2019-07-09 Thread Ricardo Ribalda Delgado
Hi Richard Something else that I need to fix on this patch? Thanks! On Wed, Jul 3, 2019 at 6:33 PM Ricardo Ribalda Delgado wrote: > > Recipe makes use of the variable APPEND: > > do_configure[vardeps] += "APPEND" > > APPEND is usually linked to a to a machine and

[OE-core] [PATCH v2] systemd-bootconf: Make is machine specific

2019-07-03 Thread Ricardo Ribalda Delgado
ectory | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_install (log file is located at /workdir/build/tmp/work/bobcat-poky-linux/systemd-bootconf/1.00-r0/temp/log.do_install.737) NOTE: recipe systemd-bootconf-1.00-r0: task do_install: Failed ERROR: Task (multiconfig:qt5022:/wo

Re: [OE-core] [PATCH] systemd-bootconf: Make is machine specific

2019-07-03 Thread Ricardo Ribalda Delgado
Ping? On Tue, 25 Jun 2019, 09:14 Ricardo Ribalda Delgado, wrote: > APPEND is usually attached to a machine. This patch avoids multiconfig > errors such as: > > | NOTE: Direct dependencies are > ['multiconfig:qt5022:/workdir/repo/poky/meta/recipes-core/glibc/glibc_2.29.bb

  1   2   3   >