NFS: Use network-online.target instead of remote-fs-pre.target
Turns out that remote-fs-pre.target is not actually "wanted" anywhere, so statd is not started before remote filesystems are mounted. But remote filesystems do "want" network-online.target, so we can use that to pull in statd and idmapd. Not sure if this is really the right thing to do, but it works for now. Background: https://bugzilla.redhat.com/show_bug.cgi?id=787314 http://hydra.nixos.org/build/5542230
This commit is contained in:
parent
e0dfb1e4ae
commit
2d57847f16
|
@ -29,6 +29,7 @@ let
|
||||||
"multi-user.target"
|
"multi-user.target"
|
||||||
"getty.target"
|
"getty.target"
|
||||||
"network.target"
|
"network.target"
|
||||||
|
"network-online.target"
|
||||||
"nss-lookup.target"
|
"nss-lookup.target"
|
||||||
"nss-user-lookup.target"
|
"nss-user-lookup.target"
|
||||||
"time-sync.target"
|
"time-sync.target"
|
||||||
|
|
|
@ -45,8 +45,8 @@ in
|
||||||
|
|
||||||
path = [ pkgs.nfsUtils pkgs.sysvtools pkgs.utillinux ];
|
path = [ pkgs.nfsUtils pkgs.sysvtools pkgs.utillinux ];
|
||||||
|
|
||||||
wantedBy = [ "remote-fs-pre.target" "multi-user.target" ];
|
wantedBy = [ "network-online.target" "multi-user.target" ];
|
||||||
before = [ "remote-fs-pre.target" ];
|
before = [ "network-online.target" ];
|
||||||
requires = [ "basic.target" "rpcbind.service" ];
|
requires = [ "basic.target" "rpcbind.service" ];
|
||||||
after = [ "basic.target" "rpcbind.service" "network.target" ];
|
after = [ "basic.target" "rpcbind.service" "network.target" ];
|
||||||
|
|
||||||
|
@ -69,8 +69,8 @@ in
|
||||||
|
|
||||||
path = [ pkgs.sysvtools pkgs.utillinux ];
|
path = [ pkgs.sysvtools pkgs.utillinux ];
|
||||||
|
|
||||||
wantedBy = [ "remote-fs-pre.target" "multi-user.target" ];
|
wantedBy = [ "network-online.target" "multi-user.target" ];
|
||||||
before = [ "remote-fs-pre.target" ];
|
before = [ "network-online.target" ];
|
||||||
requires = [ "rpcbind.service" ];
|
requires = [ "rpcbind.service" ];
|
||||||
after = [ "rpcbind.service" ];
|
after = [ "rpcbind.service" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue