All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically
@ 2021-02-25 21:38 Vivien Didelot
  2021-02-25 21:38 ` [PATCH 2/3] systemd-container: recommend tar Vivien Didelot
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vivien Didelot @ 2021-02-25 21:38 UTC (permalink / raw)
  To: Openembedded-core

Sort packages in RRECOMMENDS_${PN}-container alphabetically to avoid
subjective sorting and ease future additions.

Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
---
 meta/recipes-core/systemd/systemd_244.5.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd_244.5.bb b/meta/recipes-core/systemd/systemd_244.5.bb
index 70700820d7..aaed047e63 100644
--- a/meta/recipes-core/systemd/systemd_244.5.bb
+++ b/meta/recipes-core/systemd/systemd_244.5.bb
@@ -447,9 +447,9 @@ FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c
                         "
 
 RRECOMMENDS_${PN}-container += "\
-                         ${PN}-journal-upload \
-                         ${PN}-journal-remote \
                          ${PN}-journal-gatewayd \
+                         ${PN}-journal-remote \
+                         ${PN}-journal-upload \
                         "
 
 FILES_${PN}-extra-utils = "\
-- 
2.30.1


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

* [PATCH 2/3] systemd-container: recommend tar
  2021-02-25 21:38 [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Vivien Didelot
@ 2021-02-25 21:38 ` Vivien Didelot
  2021-02-25 21:38 ` [PATCH 3/3] systemd-container: recommends StartExecPre modules Vivien Didelot
  2021-02-25 21:47 ` [OE-core] [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Richard Purdie
  2 siblings, 0 replies; 6+ messages in thread
From: Vivien Didelot @ 2021-02-25 21:38 UTC (permalink / raw)
  To: Openembedded-core

If systemd is configured with importd, "machinectl import-*" can be
used to add container trees under /var/lib/machines.

But "machinectl import-tar" makes use of "tar --numeric-owner" which
is not supported by the busybox binary, as shown below:

    # machinectl import-tar /tmp/container.tar.xz
    Enqueued transfer job 1. Press C-c to continue download in background.
    Importing '/tmp/container.tar.xz', saving as 'container'.
    Imported 0%.
    tar: unrecognized option '--numeric-owner'
    BusyBox v1.31.1 () multi-call binary.
    Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [FILE]...
    Failed to decode and write: Broken pipe
    Exiting.

To fix this, recommend the standard tar package.

Cc: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
---
 meta/recipes-core/systemd/systemd_244.5.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_244.5.bb b/meta/recipes-core/systemd/systemd_244.5.bb
index aaed047e63..8a30d7d795 100644
--- a/meta/recipes-core/systemd/systemd_244.5.bb
+++ b/meta/recipes-core/systemd/systemd_244.5.bb
@@ -446,10 +446,12 @@ FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c
                          ${datadir}/polkit-1/actions/org.freedesktop.machine1.policy \
                         "
 
+# "machinectl import-tar" uses "tar --numeric-owner", not supported by busybox.
 RRECOMMENDS_${PN}-container += "\
                          ${PN}-journal-gatewayd \
                          ${PN}-journal-remote \
                          ${PN}-journal-upload \
+                         tar \
                         "
 
 FILES_${PN}-extra-utils = "\
-- 
2.30.1


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

* [PATCH 3/3] systemd-container: recommends StartExecPre modules
  2021-02-25 21:38 [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Vivien Didelot
  2021-02-25 21:38 ` [PATCH 2/3] systemd-container: recommend tar Vivien Didelot
@ 2021-02-25 21:38 ` Vivien Didelot
  2021-02-25 21:47 ` [OE-core] [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Richard Purdie
  2 siblings, 0 replies; 6+ messages in thread
From: Vivien Didelot @ 2021-02-25 21:38 UTC (permalink / raw)
  To: Openembedded-core

The systemd-nspawn@.service file uses the following line to try
loading the tun, loop and dm-mod kernel modules, in a non fatal way:

    ExecStartPre=-/sbin/modprobe -abq tun loop dm-mod

A non-zero return code from modprobe will not stop the service from
starting, but it would be convenient to inform the user about this
optional support, so add these modules to RRECOMMENDS.

Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
---
 meta/recipes-core/systemd/systemd_244.5.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_244.5.bb b/meta/recipes-core/systemd/systemd_244.5.bb
index 8a30d7d795..3314930e9d 100644
--- a/meta/recipes-core/systemd/systemd_244.5.bb
+++ b/meta/recipes-core/systemd/systemd_244.5.bb
@@ -451,6 +451,9 @@ RRECOMMENDS_${PN}-container += "\
                          ${PN}-journal-gatewayd \
                          ${PN}-journal-remote \
                          ${PN}-journal-upload \
+                         kernel-module-dm-mod \
+                         kernel-module-loop \
+                         kernel-module-tun \
                          tar \
                         "
 
-- 
2.30.1


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

* Re: [OE-core] [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically
  2021-02-25 21:38 [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Vivien Didelot
  2021-02-25 21:38 ` [PATCH 2/3] systemd-container: recommend tar Vivien Didelot
  2021-02-25 21:38 ` [PATCH 3/3] systemd-container: recommends StartExecPre modules Vivien Didelot
@ 2021-02-25 21:47 ` Richard Purdie
  2021-02-26 21:44   ` Vivien Didelot
  2 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2021-02-25 21:47 UTC (permalink / raw)
  To: Vivien Didelot, Openembedded-core

On Thu, 2021-02-25 at 16:38 -0500, Vivien Didelot wrote:
> Sort packages in RRECOMMENDS_${PN}-container alphabetically to avoid
> subjective sorting and ease future additions.
> 
> Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
> ---
>  meta/recipes-core/systemd/systemd_244.5.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-core/systemd/systemd_244.5.bb b/meta/recipes-core/systemd/systemd_244.5.bb
> index 70700820d7..aaed047e63 100644
> --- a/meta/recipes-core/systemd/systemd_244.5.bb
> +++ b/meta/recipes-core/systemd/systemd_244.5.bb
> @@ -447,9 +447,9 @@ FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c
>                          "
>  
> 
> 
> 
>  RRECOMMENDS_${PN}-container += "\
> -                         ${PN}-journal-upload \
> -                         ${PN}-journal-remote \
>                           ${PN}-journal-gatewayd \
> +                         ${PN}-journal-remote \
> +                         ${PN}-journal-upload \
>                          "
>  
> 

These look like ok changes to me but they're against an older version of
systemd, we currently have 247.3 in master. Would you be able to send
against that version please?

Cheers,

Richard



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

* Re: [OE-core] [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically
  2021-02-25 21:47 ` [OE-core] [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Richard Purdie
@ 2021-02-26 21:44   ` Vivien Didelot
  0 siblings, 0 replies; 6+ messages in thread
From: Vivien Didelot @ 2021-02-26 21:44 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Openembedded-core

Hi Richard,

On Thu, 25 Feb 2021 21:47:24 +0000 Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
> On Thu, 2021-02-25 at 16:38 -0500, Vivien Didelot wrote:
> > Sort packages in RRECOMMENDS_${PN}-container alphabetically to avoid
> > subjective sorting and ease future additions.
> > 
> > Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
> > ---
> >  meta/recipes-core/systemd/systemd_244.5.bb | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/meta/recipes-core/systemd/systemd_244.5.bb b/meta/recipes-core/systemd/systemd_244.5.bb
> > index 70700820d7..aaed047e63 100644
> > --- a/meta/recipes-core/systemd/systemd_244.5.bb
> > +++ b/meta/recipes-core/systemd/systemd_244.5.bb
> > @@ -447,9 +447,9 @@ FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.c
> >                          "
> >  
> > 
> > 
> > 
> >  RRECOMMENDS_${PN}-container += "\
> > -                         ${PN}-journal-upload \
> > -                         ${PN}-journal-remote \
> >                           ${PN}-journal-gatewayd \
> > +                         ${PN}-journal-remote \
> > +                         ${PN}-journal-upload \
> >                          "
> >  
> > 
> 
> These look like ok changes to me but they're against an older version of
> systemd, we currently have 247.3 in master. Would you be able to send
> against that version please?

Oops, I based my patches against latest "dunfell".

They do apply cleanly on latest master though (containing systemd_247.3.bb).
Do you wish me to resend them anyway?

Also regarding patch 2/3, I placed "tar" in RRECOMMENDS because one can use
machinectl without the "import-tar" subcommand, but one could argue that this
subcommand is broken without a version of tar supporting --numeric-owner,
thus could be a candidate for RDEPENDS. What is your view on this?


Thank you,
Vivien

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

* [PATCH 3/3] systemd-container: recommends StartExecPre modules
  2021-03-01 16:53 Vivien Didelot
@ 2021-03-01 16:53 ` Vivien Didelot
  0 siblings, 0 replies; 6+ messages in thread
From: Vivien Didelot @ 2021-03-01 16:53 UTC (permalink / raw)
  To: Openembedded-core

The systemd-nspawn@.service file uses the following line to try
loading the tun, loop and dm-mod kernel modules, in a non fatal way:

    ExecStartPre=-/sbin/modprobe -abq tun loop dm-mod

A non-zero return code from modprobe will not stop the service from
starting, but it would be convenient to inform the user about this
optional support, so add these modules to RRECOMMENDS.

Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
---
 meta/recipes-core/systemd/systemd_247.3.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_247.3.bb b/meta/recipes-core/systemd/systemd_247.3.bb
index 3454085e5f..cd67e65abe 100644
--- a/meta/recipes-core/systemd/systemd_247.3.bb
+++ b/meta/recipes-core/systemd/systemd_247.3.bb
@@ -489,6 +489,9 @@ RRECOMMENDS_${PN}-container += "\
                          ${PN}-journal-gatewayd \
                          ${PN}-journal-remote \
                          ${PN}-journal-upload \
+                         kernel-module-dm-mod \
+                         kernel-module-loop \
+                         kernel-module-tun \
                          tar \
                         "
 
-- 
2.30.1


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

end of thread, other threads:[~2021-03-01 16:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 21:38 [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Vivien Didelot
2021-02-25 21:38 ` [PATCH 2/3] systemd-container: recommend tar Vivien Didelot
2021-02-25 21:38 ` [PATCH 3/3] systemd-container: recommends StartExecPre modules Vivien Didelot
2021-02-25 21:47 ` [OE-core] [PATCH 1/3] systemd-container: sort RRECOMMENDS alphabetically Richard Purdie
2021-02-26 21:44   ` Vivien Didelot
2021-03-01 16:53 Vivien Didelot
2021-03-01 16:53 ` [PATCH 3/3] systemd-container: recommends StartExecPre modules Vivien Didelot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.