On 09.08.2017 11:28, Tilman Baumann wrote:
> UPS shutdowns are tricky. Clean file-systems are not the only concern.
> But if you can make assumptions about your storage backend you might be
> able to cut corners safely.
> In my experience, the only place where you can hook in a non racy way is
> in the kernel.
Apologies, I copy and pasted the wrong link
The magic is here IIRC
systemd-devel mailing list