@@ -70,13 +70,16 @@ in
7070
7171 boot.initrd.kernelModules = mkIf inInitrd [ "nfs" ];
7272
73+ # FIXME: should use upstream units from nfs-utils.
74+
7375 systemd.services.statd =
7476 { description = "NFSv3 Network Status Monitor";
7577
7678 path = [ pkgs.nfs-utils pkgs.sysvtools pkgs.utillinux ];
7779
78− wantedBy = [ "remote-fs-pre.target" ];
80+ wants = [ "remote-fs-pre.target" ];
7981 before = [ "remote-fs-pre.target" ];
82+ wantedBy = [ "remote-fs.target" ];
8083 requires = [ "basic.target" "rpcbind.service" ];
8184 after = [ "basic.target" "rpcbind.service" ];
8285
@@ -102,8 +105,9 @@ in
102105
103106 path = [ pkgs.sysvtools pkgs.utillinux ];
104107
105− wantedBy = [ "remote-fs-pre.target" ];
108+ wants = [ "remote-fs-pre.target" ];
106109 before = [ "remote-fs-pre.target" ];
110+ wantedBy = [ "remote-fs.target" ];
107111 requires = [ "rpcbind.service" ];
108112 after = [ "rpcbind.service" ];
109113