nixos/zfs: ensure correct ordering w.r.t. shutdown.target

This commit is contained in:
Philip Taron 2023-11-30 15:34:52 -08:00
parent d4f57da9e8
commit e95b3d3915
No known key found for this signature in database

View File

@ -127,7 +127,8 @@ let
"systemd-ask-password-console.service"
];
requiredBy = getPoolMounts prefix pool ++ [ "zfs-import.target" ];
before = getPoolMounts prefix pool ++ [ "zfs-import.target" ];
before = getPoolMounts prefix pool ++ [ "shutdown.target" "zfs-import.target" ];
conflicts = [ "shutdown.target" ];
unitConfig = {
DefaultDependencies = "no";
};