mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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: e00920c55a44058e8d2b063bf865df11e59a6185) 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>
14 lines
299 B
SYSTEMD
14 lines
299 B
SYSTEMD
[Unit]
|
|
Description=Overlayfs directories setup {LOWERDIR}
|
|
RequiresMountsFor={DATA_MOUNT_POINT}
|
|
DefaultDependencies=no
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/sbin/overlayfs-create-dirs.sh {LOWERDIR} {DATA_MOUNT_POINT}
|
|
RemainAfterExit=true
|
|
StandardOutput=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|