mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
The mount-copybind script will create the parent directory of the bind mount if it does not exist. But actually, if this is the case, the service will not even start because of the ConditionPathIsReadWrite. This patch adds a "or" condition to allow the service to start also if the parent directory of the bind mount does not exist. (From OE-Core rev: 1ca031b77546056ca1994469b0f2e93ea2018edf) Signed-off-by: Stéphane Veyret <sveyret@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
490 B
SYSTEMD
20 lines
490 B
SYSTEMD
[Unit]
|
|
Description=Bind mount volatile @where@
|
|
DefaultDependencies=no
|
|
Before=local-fs.target
|
|
RequiresMountsFor=@whatparent@ @whereparent@
|
|
ConditionPathIsReadWrite=|@whatparent@
|
|
ConditionPathExists=|!@whatparent@
|
|
ConditionPathExists=@where@
|
|
ConditionPathIsReadWrite=!@where@
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=Yes
|
|
Environment=MOUNT_COPYBIND_AVOID_OVERLAYFS=@avoid_overlayfs@
|
|
ExecStart=/sbin/mount-copybind @what@ @where@
|
|
ExecStop=/bin/umount @where@
|
|
|
|
[Install]
|
|
WantedBy=local-fs.target
|