Skip to contentSkip to conversation

volatile-binds: Allow creation of subdirectories

PATCH In review Stéphane Veyret 1 participant 2 messages Aug 27, 2023 – Oct 28, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 volatile-binds: Allow creation of subdirectories

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.

---
 .../volatile-binds/files/volatile-binds.service.in             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/volatile-binds/files/volatile-binds.service.in +2 -1
index 52384c8264..5a0055bec3 100644
@@ -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@
 
Signature · 1 line
2.41.0