nixos/tests/nfs: fix nfs4 client mount path

nfs4 exports from a virtual filesystem root,
so the client mount path differs from nfs3
This commit is contained in:
Uli Baum 2018-08-30 19:57:39 +02:00
parent c62bb34f7a
commit e0ca51c367

View file

@ -6,7 +6,8 @@ let
{ pkgs, ... }:
{ fileSystems = pkgs.lib.mkVMOverride
[ { mountPoint = "/data";
device = "server:/data";
# nfs4 exports the export with fsid=0 as a virtual root directory
device = if (version == 4) then "server:/" else "server:/data";
fsType = "nfs";
options = [ "vers=${toString version}" ];
}