summaryrefslogtreecommitdiff
path: root/units/lazy_mount.service
blob: 91b330833b59e5d60425abbe2447a9a3ea2a39bb (plain)
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Mount /opt/usr
ConditionPathIsMountPoint = !/opt/usr

[Service]
Type=oneshot
SmackProcessLabel=System
ExecStartPre=/usr/bin/rm -f /run/.unlock_mnt /tmp/.lazy_mount
ExecStart=/usr/bin/mount -L user /opt/usr
ExecStartPost=/usr/bin/touch /run/.unlock_mnt
SuccessExitStatus=0