]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
volatile-binds: Allow creation of subdirectories
authorStéphane Veyret <sveyret@gmail.com>
Sun, 27 Aug 2023 16:41:23 +0000 (18:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Oct 2023 08:50:09 +0000 (08:50 +0000)
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.

Signed-off-by: Stéphane Veyret <sveyret@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/volatile-binds/files/volatile-binds.service.in

index 52384c826411b54b9a0cf265d54f3e0911ffdb4e..5a0055bec3cbfbb8abf918c608c0d5d29d0d7bf2 100644 (file)
@@ -3,7 +3,8 @@ Description=Bind mount volatile @where@
 DefaultDependencies=no
 Before=local-fs.target
 RequiresMountsFor=@whatparent@ @whereparent@
-ConditionPathIsReadWrite=@whatparent@
+ConditionPathIsReadWrite=|@whatparent@
+ConditionPathExists=|!@whatparent@
 ConditionPathExists=@where@
 ConditionPathIsReadWrite=!@where@