]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
files: overlayfs-create-dirs: Improve mount unit dependency
authorEsben Haabendal <esben@geanix.com>
Sat, 18 Jan 2025 18:49:55 +0000 (19:49 +0100)
committerRoss Burton <ross.burton@arm.com>
Thu, 23 Jan 2025 12:02:13 +0000 (12:02 +0000)
commitfa2422232a143b21aeea3728abca82100946dbc4
treeacc2b3f246e7835c11a4655f0a9948329175daf4
parent544d8ee19b5ac74a841722a3e000019d2e6ab4f8
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.

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>
meta/files/overlayfs-create-dirs.service.in