]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
files: overlayfs-create-dirs: Improve mount unit dependency
authorEsben Haabendal <esben@geanix.com>
Tue, 4 Feb 2025 13:53:03 +0000 (14:53 +0100)
committerSteve Sakoman <steve@sakoman.com>
Wed, 5 Feb 2025 17:05:28 +0000 (09:05 -0800)
commite00920c55a44058e8d2b063bf865df11e59a6185
treea52f1fc05145593ddd4e7796d2e762ee0654dd3a
parent9eb6c41e1c5411193a19e73af81f628171b01407
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>
(cherry picked from commit fa2422232a143b21aeea3728abca82100946dbc4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/files/overlayfs-create-dirs.service.in