summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsben Haabendal <esben@geanix.com>2025-01-18 19:49:55 +0100
committerRoss Burton <ross.burton@arm.com>2025-01-23 12:14:29 +0000
commit1537ceb1c3be55cee544eee204359268e0b21fdd (patch)
tree782b3f00b253a9d4e6ca986766f4cccf4019c2f7
parent839531ac1cd27936699f837b8a8d4807f2baa586 (diff)
downloadpoky-1537ceb1c3be55cee544eee204359268e0b21fdd.tar.gz
files: overlayfs-create-dirs: Improve mount unit dependency
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. (From OE-Core rev: fa2422232a143b21aeea3728abca82100946dbc4) Signed-off-by: Esben Haabendal <esben@geanix.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
-rw-r--r--meta/files/overlayfs-create-dirs.service.in3
1 files changed, 1 insertions, 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 @@
1[Unit] 1[Unit]
2Description=Overlayfs directories setup {LOWERDIR} 2Description=Overlayfs directories setup {LOWERDIR}
3Requires={DATA_MOUNT_UNIT} 3RequiresMountsFor={DATA_MOUNT_POINT}
4After={DATA_MOUNT_UNIT}
5DefaultDependencies=no 4DefaultDependencies=no
6 5
7[Service] 6[Service]