[Unit] Before=systemd-user-sessions.service ConditionPathExists=/etc/systemd/system/multi-user.target.wants/oerv-firstboot.service Requires=-.mount [Service] Type=oneshot ExecStart=/usr/sbin/oerv-firstboot.sh ExecStartPost=/usr/bin/rm /etc/systemd/system/multi-user.target.wants/oerv-firstboot.service RemainAfterExit=yes [Install] WantedBy=multi-user.target