mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
839531ac1c
commit
1537ceb1c3
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user