From deb6c6e052a7c7d255835cb50ea2d39890c817a8 Mon Sep 17 00:00:00 2001 From: Svein Ove Aas Date: Sat, 9 Jun 2018 00:06:22 +0100 Subject: zfs: Fix "zfs-sync" for modern systemd --- nixos/modules/tasks/filesystems/zfs.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules/tasks/filesystems') diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index c3bf897d51fd..de735e9ba11b 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -403,6 +403,9 @@ in nameValuePair "zfs-sync-${pool}" { description = "Sync ZFS pool \"${pool}\""; wantedBy = [ "shutdown.target" ]; + unitConfig = { + DefaultDependencies = false; + }; serviceConfig = { Type = "oneshot"; RemainAfterExit = true; -- cgit 1.4.1