[Unit] Description=Wait until %f is mounted DefaultDependencies=no Before=basic.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/sh -c 'while ! `mountpoint -q %f`; do sleep 1; done'