mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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
2 changed files with 5 additions and 4 deletions
|
@ -29,6 +29,7 @@ let
|
|||
"multi-user.target"
|
||||
"getty.target"
|
||||
"network.target"
|
||||
"network-online.target"
|
||||
"nss-lookup.target"
|
||||
"nss-user-lookup.target"
|
||||
"time-sync.target"
|
||||
|
|
|
@ -45,8 +45,8 @@ in
|
|||
|
||||
path = [ pkgs.nfsUtils pkgs.sysvtools pkgs.utillinux ];
|
||||
|
||||
wantedBy = [ "remote-fs-pre.target" "multi-user.target" ];
|
||||
before = [ "remote-fs-pre.target" ];
|
||||
wantedBy = [ "network-online.target" "multi-user.target" ];
|
||||
before = [ "network-online.target" ];
|
||||
requires = [ "basic.target" "rpcbind.service" ];
|
||||
after = [ "basic.target" "rpcbind.service" "network.target" ];
|
||||
|
||||
|
@ -69,8 +69,8 @@ in
|
|||
|
||||
path = [ pkgs.sysvtools pkgs.utillinux ];
|
||||
|
||||
wantedBy = [ "remote-fs-pre.target" "multi-user.target" ];
|
||||
before = [ "remote-fs-pre.target" ];
|
||||
wantedBy = [ "network-online.target" "multi-user.target" ];
|
||||
before = [ "network-online.target" ];
|
||||
requires = [ "rpcbind.service" ];
|
||||
after = [ "rpcbind.service" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue