diff options
author | Stéphane Veyret <sveyret@gmail.com> | 2023-08-27 18:41:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-30 08:50:46 +0000 |
commit | d6134c9f97d9ac062471a870c70a3f1d1f3a5959 (patch) | |
tree | bd4015f491aaa38601e74217e9a679183111fbf0 /meta/recipes-core | |
parent | 50c57ee367dcb32d664e315d8e812de57cd24060 (diff) | |
download | poky-d6134c9f97d9ac062471a870c70a3f1d1f3a5959.tar.gz |
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.
(From OE-Core rev: 1ca031b77546056ca1994469b0f2e93ea2018edf)
Signed-off-by: Stéphane Veyret <sveyret@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/volatile-binds/files/volatile-binds.service.in | 3 |
1 files changed, 2 insertions, 1 deletions
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@ | |||
3 | DefaultDependencies=no | 3 | DefaultDependencies=no |
4 | Before=local-fs.target | 4 | Before=local-fs.target |
5 | RequiresMountsFor=@whatparent@ @whereparent@ | 5 | RequiresMountsFor=@whatparent@ @whereparent@ |
6 | ConditionPathIsReadWrite=@whatparent@ | 6 | ConditionPathIsReadWrite=|@whatparent@ |
7 | ConditionPathExists=|!@whatparent@ | ||
7 | ConditionPathExists=@where@ | 8 | ConditionPathExists=@where@ |
8 | ConditionPathIsReadWrite=!@where@ | 9 | ConditionPathIsReadWrite=!@where@ |
9 | 10 | ||