blob: 52384c826411b54b9a0cf265d54f3e0911ffdb4e [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@
6ConditionPathIsReadWrite=@whatparent@
7ConditionPathExists=@where@
8ConditionPathIsReadWrite=!@where@
9
10[Service]
11Type=oneshot
12RemainAfterExit=Yes
Andrew Geissler9aee5002022-03-30 16:27:02 +000013Environment=MOUNT_COPYBIND_AVOID_OVERLAYFS=@avoid_overlayfs@
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014ExecStart=/sbin/mount-copybind @what@ @where@
15ExecStop=/bin/umount @where@
16
17[Install]
18WantedBy=local-fs.target