From e0ca51c36741a4a14ebaf059d488d3cab3128cd9 Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Thu, 30 Aug 2018 19:57:39 +0200 Subject: [PATCH] nixos/tests/nfs: fix nfs4 client mount path nfs4 exports from a virtual filesystem root, so the client mount path differs from nfs3 --- nixos/tests/nfs.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/tests/nfs.nix b/nixos/tests/nfs.nix index 1992f240e7b0..0ef44f1a4890 100644 --- a/nixos/tests/nfs.nix +++ b/nixos/tests/nfs.nix @@ -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}" ]; }