Fix NFSv4 test
http://hydra.nixos.org/build/25349071
(cherry picked from commit ea7b5bb8b0
)
This commit is contained in:
parent
a882eaa168
commit
07c2ffa70d
|
@ -88,10 +88,7 @@ in
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.nfs-utils ];
|
environment.systemPackages = [ pkgs.nfs-utils ];
|
||||||
|
|
||||||
environment.etc = singleton
|
environment.etc.exports.source = exports;
|
||||||
{ source = exports;
|
|
||||||
target = "exports";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.kernelModules = [ "nfsd" ];
|
boot.kernelModules = [ "nfsd" ];
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ let
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{ fileSystems = pkgs.lib.mkVMOverride
|
{ fileSystems = pkgs.lib.mkVMOverride
|
||||||
[ { mountPoint = "/data";
|
[ { mountPoint = "/data";
|
||||||
device = "server:${if version == 4 then "/" else "/data"}";
|
device = "server:/data";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = "vers=${toString version}";
|
options = "vers=${toString version}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user