nixos/zfs: order pool sync services before final.target

If we don't do this, I think systemd can kill the service(s) before they
finish.
This commit is contained in:
Bjørn Forsman 2024-10-08 21:10:15 +02:00
parent 5c8a2cab3f
commit 7aad7090b7

View file

@ -761,6 +761,7 @@ in
lib.nameValuePair "zfs-sync-${pool}" {
description = "Sync ZFS pool \"${pool}\"";
wantedBy = [ "shutdown.target" ];
before = [ "final.target" ];
unitConfig = {
DefaultDependencies = false;
};