blob: 5a0055bec3cbfbb8abf918c608c0d5d29d0d7bf2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001[Unit]
2Description=Bind mount volatile @where@
Patrick Williams03907ee2022-05-01 06:28:52 -05003DefaultDependencies=no
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004Before=local-fs.target
5RequiresMountsFor=@whatparent@ @whereparent@
Patrick Williamsac13d5f2023-11-24 18:59:46 -06006ConditionPathIsReadWrite=|@whatparent@
7ConditionPathExists=|!@whatparent@
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008ConditionPathExists=@where@
9ConditionPathIsReadWrite=!@where@
10
11[Service]
12Type=oneshot
13RemainAfterExit=Yes
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