Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Bind mount volatile @where@
|
||||
DefaultDependencies=no
|
||||
Before=local-fs.target
|
||||
RequiresMountsFor=@whatparent@ @whereparent@
|
||||
ConditionPathIsReadWrite=@whatparent@
|
||||
ConditionPathExists=@where@
|
||||
ConditionPathIsReadWrite=!@where@
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=Yes
|
||||
Environment=MOUNT_COPYBIND_AVOID_OVERLAYFS=@avoid_overlayfs@
|
||||
ExecStart=/sbin/mount-copybind @what@ @where@
|
||||
ExecStop=/bin/umount @where@
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
Reference in New Issue
Block a user