xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-core/volatile-binds/files/volatile-binds.service.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1[Unit]
2Description=Bind mount volatile @where@
3DefaultDependencies=no
4Before=local-fs.target
5RequiresMountsFor=@whatparent@ @whereparent@
6ConditionPathIsReadWrite=@whatparent@
7ConditionPathExists=@where@
8ConditionPathIsReadWrite=!@where@
9
10[Service]
11Type=oneshot
12RemainAfterExit=Yes
13TimeoutSec=0
14Environment=MOUNT_COPYBIND_AVOID_OVERLAYFS=@avoid_overlayfs@
15ExecStart=/sbin/mount-copybind @what@ @where@
16ExecStop=/bin/umount @where@
17
18[Install]
19WantedBy=local-fs.target
20