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:
parent
c62bb34f7a
commit
e0ca51c367
|
@ -6,7 +6,8 @@ let
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{ fileSystems = pkgs.lib.mkVMOverride
|
{ fileSystems = pkgs.lib.mkVMOverride
|
||||||
[ { mountPoint = "/data";
|
[ { 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";
|
fsType = "nfs";
|
||||||
options = [ "vers=${toString version}" ];
|
options = [ "vers=${toString version}" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue