blob: 6612d2aae09ee90ad6fe5790ce55cc00f37d0e42 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001[Unit]
2Description=Bind mount volatile @where@
3DefaultDependencies=false
4Before=local-fs.target
5RequiresMountsFor=@whatparent@ @whereparent@
6ConditionPathIsReadWrite=@whatparent@
7ConditionPathExists=@where@
8ConditionPathIsReadWrite=!@where@
9
10[Service]
11Type=oneshot
12RemainAfterExit=Yes
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013TimeoutSec=0
Andrew Geissler9aee5002022-03-30 16:27:02 +000014Environment=MOUNT_COPYBIND_AVOID_OVERLAYFS=@avoid_overlayfs@
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015ExecStart=/sbin/mount-copybind @what@ @where@
16ExecStop=/bin/umount @where@
17
18[Install]
19WantedBy=local-fs.target