* [PATCH v2] image-container-extension: exclude proc sys dev
@ 2022-04-05 8:58 martin.banov.dev
2022-04-26 11:01 ` Anton Mikanovich
0 siblings, 1 reply; 2+ messages in thread
From: martin.banov.dev @ 2022-04-05 8:58 UTC (permalink / raw)
To: isar-users; +Cc: Martin Banov, Daniel Machon
From: Martin Banov <mabo@universal-robots.com>
The patch prevents 'cp' from copying the kernel filesystems
into the docker container.
We had CI issues with 'cp' trying to copy /proc/<pid>/pagemap.
Signed-off-by: Martin Banov <mabo@universal-robots.com>
Signed-off-by: Daniel Machon <dama@universal-robots.com>
---
meta/classes/image-container-extension.bbclass | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/meta/classes/image-container-extension.bbclass b/meta/classes/image-container-extension.bbclass
index cdec463..f4e8d41 100644
--- a/meta/classes/image-container-extension.bbclass
+++ b/meta/classes/image-container-extension.bbclass
@@ -29,9 +29,8 @@ containerize_rootfs() {
"${oci_img_dir}_unpacked"
# add root filesystem as the flesh of the skeleton
- sudo cp -a "${rootfs}"/* "${oci_img_dir}_unpacked/rootfs/"
- # clean-up temporary files
- sudo find "${oci_img_dir}_unpacked/rootfs/tmp" -mindepth 1 -delete
+ sudo cp -axT "${rootfs}" "${oci_img_dir}_unpacked/rootfs/"
+
# pack container image
bbdebug 1 "pack container image"
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] image-container-extension: exclude proc sys dev
2022-04-05 8:58 [PATCH v2] image-container-extension: exclude proc sys dev martin.banov.dev
@ 2022-04-26 11:01 ` Anton Mikanovich
0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2022-04-26 11:01 UTC (permalink / raw)
To: martin.banov.dev, isar-users; +Cc: Martin Banov, Daniel Machon
05.04.2022 11:58, martin.banov.dev@gmail.com wrote:
> From: Martin Banov <mabo@universal-robots.com>
>
> The patch prevents 'cp' from copying the kernel filesystems
> into the docker container.
> We had CI issues with 'cp' trying to copy /proc/<pid>/pagemap.
>
> Signed-off-by: Martin Banov <mabo@universal-robots.com>
> Signed-off-by: Daniel Machon <dama@universal-robots.com>
> ---
> meta/classes/image-container-extension.bbclass | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/meta/classes/image-container-extension.bbclass b/meta/classes/image-container-extension.bbclass
> index cdec463..f4e8d41 100644
> --- a/meta/classes/image-container-extension.bbclass
> +++ b/meta/classes/image-container-extension.bbclass
> @@ -29,9 +29,8 @@ containerize_rootfs() {
> "${oci_img_dir}_unpacked"
>
> # add root filesystem as the flesh of the skeleton
> - sudo cp -a "${rootfs}"/* "${oci_img_dir}_unpacked/rootfs/"
> - # clean-up temporary files
> - sudo find "${oci_img_dir}_unpacked/rootfs/tmp" -mindepth 1 -delete
> + sudo cp -axT "${rootfs}" "${oci_img_dir}_unpacked/rootfs/"
> +
Please remove unnecessary spaces here.
>
> # pack container image
> bbdebug 1 "pack container image"
Also this patch fails on 'bitbake -c do_populate_sdk
mc:container-amd64-stretch:isar-image-base' if setting SDK_FORMATS =
"docker-archive"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-26 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 8:58 [PATCH v2] image-container-extension: exclude proc sys dev martin.banov.dev
2022-04-26 11:01 ` Anton Mikanovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox