diff options
Diffstat (limited to 'perl-install/fs/remote')
-rw-r--r-- | perl-install/fs/remote/nfs.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/remote/nfs.pm b/perl-install/fs/remote/nfs.pm index 7acddb730..816c152a5 100644 --- a/perl-install/fs/remote/nfs.pm +++ b/perl-install/fs/remote/nfs.pm @@ -51,7 +51,8 @@ sub find_servers { $quit = 0; my ($ip, $name) = $s =~ /(\S+)\s+(\S+)/ or log::explanations("bad line in rpcinfo output"), next; $name =~ s/\.$//; - $name =~ s/\Q.$domain\E$//; + $domain && $name =~ s/\Q.$domain\E$// + || $name =~ s/^([^.]*)\.local$/$1/; $servers{$ip} ||= { ip => $ip, if_($name ne '(unknown)', name => $name) }; } } |