diff options
Diffstat (limited to 'meta/recipes-core/volatile-binds/files/volatile-binds.service.in')
-rw-r--r-- | meta/recipes-core/volatile-binds/files/volatile-binds.service.in | 7 |
1 files changed, 4 insertions, 3 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 e2ad39f258..5a0055bec3 100644 --- a/meta/recipes-core/volatile-binds/files/volatile-binds.service.in +++ b/meta/recipes-core/volatile-binds/files/volatile-binds.service.in | |||
@@ -1,16 +1,17 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=Bind mount volatile @where@ | 2 | Description=Bind mount volatile @where@ |
3 | DefaultDependencies=false | 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 | ||
10 | [Service] | 11 | [Service] |
11 | Type=oneshot | 12 | Type=oneshot |
12 | RemainAfterExit=Yes | 13 | RemainAfterExit=Yes |
13 | TimeoutSec=0 | 14 | Environment=MOUNT_COPYBIND_AVOID_OVERLAYFS=@avoid_overlayfs@ |
14 | ExecStart=/sbin/mount-copybind @what@ @where@ | 15 | ExecStart=/sbin/mount-copybind @what@ @where@ |
15 | ExecStop=/bin/umount @where@ | 16 | ExecStop=/bin/umount @where@ |
16 | 17 | ||