Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Bind mount volatile @where@ |
| 3 | DefaultDependencies=false |
| 4 | Before=local-fs.target |
| 5 | RequiresMountsFor=@whatparent@ @whereparent@ |
| 6 | ConditionPathIsReadWrite=@whatparent@ |
| 7 | ConditionPathExists=@where@ |
| 8 | ConditionPathIsReadWrite=!@where@ |
| 9 | |
| 10 | [Service] |
| 11 | Type=oneshot |
| 12 | RemainAfterExit=Yes |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | TimeoutSec=0 |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 14 | Environment=MOUNT_COPYBIND_AVOID_OVERLAYFS=@avoid_overlayfs@ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | ExecStart=/sbin/mount-copybind @what@ @where@ |
| 16 | ExecStop=/bin/umount @where@ |
| 17 | |
| 18 | [Install] |
| 19 | WantedBy=local-fs.target |