public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Vyacheslav Yurkov <uvv.mail@gmail.com>
To: esben@geanix.com, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] files: overlayfs-create-dirs: Improve mount unit dependency
Date: Tue, 21 Jan 2025 11:39:11 +0100	[thread overview]
Message-ID: <7577a74b-59f0-4fd2-a73c-fea954855b92@gmail.com> (raw)
In-Reply-To: <20250118-overlayfs-requires-v1-1-8f3eafdb54d0@geanix.com>

[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]

Looks good. Thanks for the patch.

Slava

On 18.01.2025 19:49, Esben Haabendal via lists.openembedded.org wrote:
> The RequiresMountsFor configuration option of systemd.unit (added in
> systemd version 201) not only adds the Requires and After options for
> the required mount unit, but it adds them for all mount units required
> to access the specified path.
>
> So this change is both a simplification, and an improvement.
>
> Not only will all needed mount units be added to Requires and After, but
> the overlay path does not have to be a mountpoint, but can be at any
> directory level beneath a mountpoint.
>
> Signed-off-by: Esben Haabendal<esben@geanix.com>
> ---
>   meta/files/overlayfs-create-dirs.service.in | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/meta/files/overlayfs-create-dirs.service.in b/meta/files/overlayfs-create-dirs.service.in
> index d8d916365a4562dbe522eca9f291a9a4c859f7d9..c8431548d76d18b8dfafd5a69d18f25b6629cc4f 100644
> --- a/meta/files/overlayfs-create-dirs.service.in
> +++ b/meta/files/overlayfs-create-dirs.service.in
> @@ -1,7 +1,6 @@
>   [Unit]
>   Description=Overlayfs directories setup {LOWERDIR}
> -Requires={DATA_MOUNT_UNIT}
> -After={DATA_MOUNT_UNIT}
> +RequiresMountsFor={DATA_MOUNT_POINT}
>   DefaultDependencies=no
>   
>   [Service]
>
> ---
> base-commit: f642edb006a8c16dbe45681afe547eabfae17073
> change-id: 20250118-overlayfs-requires-cc24981f679b
>

[-- Attachment #2: Type: text/html, Size: 1840 bytes --]

      reply	other threads:[~2025-01-21 10:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-18 18:49 [PATCH] files: overlayfs-create-dirs: Improve mount unit dependency Esben Haabendal
2025-01-21 10:39 ` Vyacheslav Yurkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7577a74b-59f0-4fd2-a73c-fea954855b92@gmail.com \
    --to=uvv.mail@gmail.com \
    --cc=esben@geanix.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox