nixos-generate-config: Don't generate /var/lib/nfs/rpc_pipefs filesystem

It's automatically mounted if the system has support for NFS.
This commit is contained in:
Ricardo M. Correia 2014-02-19 16:56:25 +01:00
parent ad0732313d
commit cea9a1a242

@ -256,7 +256,7 @@ foreach my $fs (read_file("/proc/self/mountinfo")) {
$mountPoint = "/" if $mountPoint eq "";
# Skip special filesystems.
next if in($mountPoint, "/proc") || in($mountPoint, "/dev") || in($mountPoint, "/sys") || in($mountPoint, "/run");
next if in($mountPoint, "/proc") || in($mountPoint, "/dev") || in($mountPoint, "/sys") || in($mountPoint, "/run") || $mountPoint eq "/var/lib/nfs/rpc_pipefs";
# Skip the optional fields.
my $n = 6; $n++ while $fields[$n] ne "-"; $n++;