diff options
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-core/volatile-binds/files/volatile-binds.service.in')
-rw-r--r-- | import-layers/yocto-poky/meta/recipes-core/volatile-binds/files/volatile-binds.service.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-core/volatile-binds/files/volatile-binds.service.in b/import-layers/yocto-poky/meta/recipes-core/volatile-binds/files/volatile-binds.service.in new file mode 100644 index 000000000..b23355a71 --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-core/volatile-binds/files/volatile-binds.service.in @@ -0,0 +1,19 @@ +[Unit] +Description=Bind mount volatile @where@ +DefaultDependencies=false +Before=local-fs.target +RequiresMountsFor=@whatparent@ @whereparent@ +ConditionPathIsReadWrite=@whatparent@ +ConditionPathExists=@where@ +ConditionPathIsReadWrite=!@where@ + +[Service] +Type=oneshot +RemainAfterExit=Yes +StandardOutput=syslog +TimeoutSec=0 +ExecStart=/sbin/mount-copybind @what@ @where@ +ExecStop=/bin/umount @where@ + +[Install] +WantedBy=local-fs.target |