public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [RFC PATCH v1] image-container-extension: exclude proc sys dev
@ 2022-04-04 11:54 martin.banov.dev
  2022-04-04 13:41 ` Henning Schild
  2022-04-04 15:29 ` Henning Schild
  0 siblings, 2 replies; 4+ messages in thread
From: martin.banov.dev @ 2022-04-04 11:54 UTC (permalink / raw)
  To: isar-users; +Cc: mabo, Daniel Machon

From: mabo <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: mabo <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] 4+ messages in thread

* Re: [RFC PATCH v1] image-container-extension: exclude proc sys dev
  2022-04-04 11:54 [RFC PATCH v1] image-container-extension: exclude proc sys dev martin.banov.dev
@ 2022-04-04 13:41 ` Henning Schild
  2022-04-04 15:29 ` Henning Schild
  1 sibling, 0 replies; 4+ messages in thread
From: Henning Schild @ 2022-04-04 13:41 UTC (permalink / raw)
  To: martin.banov.dev; +Cc: isar-users, mabo, Daniel Machon

Am Mon,  4 Apr 2022 13:54:20 +0200
schrieb martin.banov.dev@gmail.com:

> From: mabo <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.

I would expect that to only run once that thing is ready to be
"shipped", so all those filesystems should not be mounted any longer.
But the whole mounting logic has been reworked and some of the
umounting might remain lazy ... So we can probably not rule out that
they might for whatever reason be mounted.
And it seems pretty clear that we only want "--one-file-system".

> Signed-off-by: mabo <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/"
> +    

LGTM.

Henning

>      # pack container image
>      bbdebug 1 "pack container image"


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

* Re: [RFC PATCH v1] image-container-extension: exclude proc sys dev
  2022-04-04 11:54 [RFC PATCH v1] image-container-extension: exclude proc sys dev martin.banov.dev
  2022-04-04 13:41 ` Henning Schild
@ 2022-04-04 15:29 ` Henning Schild
  2022-04-04 15:41   ` Baurzhan Ismagulov
  1 sibling, 1 reply; 4+ messages in thread
From: Henning Schild @ 2022-04-04 15:29 UTC (permalink / raw)
  To: martin.banov.dev; +Cc: isar-users, mabo, Daniel Machon

I would suggest to send that again, without the "RFC".

Am Mon,  4 Apr 2022 13:54:20 +0200
schrieb martin.banov.dev@gmail.com:

> From: mabo <mabo@universal-robots.com>

Might want to use your real name here, "Martin Banov" (taken from gmail
From).
But that is up to you, just wanted to point out a potential mistake,
might not be one after all.

> 
> 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: mabo <mabo@universal-robots.com>

same here.

Henning

> 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"


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

* Re: [RFC PATCH v1] image-container-extension: exclude proc sys dev
  2022-04-04 15:29 ` Henning Schild
@ 2022-04-04 15:41   ` Baurzhan Ismagulov
  0 siblings, 0 replies; 4+ messages in thread
From: Baurzhan Ismagulov @ 2022-04-04 15:41 UTC (permalink / raw)
  To: isar-users

Thanks Martin for your submission,

On Mon, Apr 04, 2022 at 05:29:36PM +0200, Henning Schild wrote:
> > From: mabo <mabo@universal-robots.com>
> 
> Might want to use your real name here, "Martin Banov" (taken from gmail
> From).

I'd really second this, copyright issues are already complicated enough :) .

With kind regards,
Baurzhan.

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

end of thread, other threads:[~2022-04-04 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 11:54 [RFC PATCH v1] image-container-extension: exclude proc sys dev martin.banov.dev
2022-04-04 13:41 ` Henning Schild
2022-04-04 15:29 ` Henning Schild
2022-04-04 15:41   ` Baurzhan Ismagulov

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