summaryrefslogtreecommitdiffstats
path: root/perl-install/network/nfs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/nfs.pm')
-rw-r--r--perl-install/network/nfs.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/nfs.pm b/perl-install/network/nfs.pm
index 5f381d1c1..859e1e63d 100644
--- a/perl-install/network/nfs.pm
+++ b/perl-install/network/nfs.pm
@@ -43,7 +43,8 @@ sub find_exports {
my ($server) = @_;
local *F;
- my $pid = open F, "showmount -e $server->{ip} |";
+ my $s = $server->{ip} || $server->{name};
+ my $pid = open F, "showmount -e $s |";
$SIG{ALRM} = sub { kill(15, $pid) };
alarm 5;