Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Bind mount volatile @where@ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 3 | DefaultDependencies=no |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | Before=local-fs.target |
| 5 | RequiresMountsFor=@whatparent@ @whereparent@ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 6 | ConditionPathIsReadWrite=|@whatparent@ |
| 7 | ConditionPathExists=|!@whatparent@ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | ConditionPathExists=@where@ |
| 9 | ConditionPathIsReadWrite=!@where@ |
| 10 | |
| 11 | [Service] |
| 12 | Type=oneshot |
| 13 | RemainAfterExit=Yes |
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 |