Openembedded Core Discussions
 help / color / mirror / Atom feed
* [meta-oe][PATCH] volatile-binds: Allow creation of subdirectories
@ 2023-08-27 16:41 Stéphane Veyret
  2023-10-28  8:17 ` Stéphane Veyret
  0 siblings, 1 reply; 2+ messages in thread
From: Stéphane Veyret @ 2023-08-27 16:41 UTC (permalink / raw)
  To: openembedded-core; +Cc: Stéphane Veyret

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>
---
 .../volatile-binds/files/volatile-binds.service.in             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/volatile-binds/files/volatile-binds.service.in b/meta/recipes-core/volatile-binds/files/volatile-binds.service.in
index 52384c8264..5a0055bec3 100644
--- a/meta/recipes-core/volatile-binds/files/volatile-binds.service.in
+++ b/meta/recipes-core/volatile-binds/files/volatile-binds.service.in
@@ -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@
 
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-28  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-27 16:41 [meta-oe][PATCH] volatile-binds: Allow creation of subdirectories Stéphane Veyret
2023-10-28  8:17 ` Stéphane Veyret

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox