From: Esben Haabendal <es...@geanix.com> 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 <es...@geanix.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-bri...@bootlin.com> Signed-off-by: Ross Burton <ross.bur...@arm.com> (cherry picked from commit fa2422232a143b21aeea3728abca82100946dbc4) Signed-off-by: Steve Sakoman <st...@sakoman.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 d8d916365a..c8431548d7 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] -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#211025): https://lists.openembedded.org/g/openembedded-core/message/211025 Mute This Topic: https://lists.openembedded.org/mt/111069730/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-