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:
parent
ad0732313d
commit
cea9a1a242
|
@ -256,7 +256,7 @@ foreach my $fs (read_file("/proc/self/mountinfo")) {
|
||||||
$mountPoint = "/" if $mountPoint eq "";
|
$mountPoint = "/" if $mountPoint eq "";
|
||||||
|
|
||||||
# Skip special filesystems.
|
# 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.
|
# Skip the optional fields.
|
||||||
my $n = 6; $n++ while $fields[$n] ne "-"; $n++;
|
my $n = 6; $n++ while $fields[$n] ne "-"; $n++;
|
||||||
|
|
Loading…
Reference in New Issue