summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/nfs.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/network/nfs.pm b/perl-install/network/nfs.pm
index 127800ecb..d257f5346 100644
--- a/perl-install/network/nfs.pm
+++ b/perl-install/network/nfs.pm
@@ -55,10 +55,9 @@ sub find_exports {
my ($_class, $server) = @_;
my @l;
- run_program::raw({ timeout => 1 }, "showmount", '>', \@l, "-e", $server->{ip} || $server->{name});
+ run_program::raw({ timeout => 1 }, "showmount", '>', \@l, "--no-headers", "-e", $server->{ip} || $server->{name});
- shift @l; #- drop first line
- map { if_(/(\S+)\s*(\S+)/, { name => $1, comment => $2, server => $server }) } @l;
+ map { if_(/(\S+(\s*\S+)*)\s+(\S+)/, { name => $1, comment => $3, server => $server }) } @l;
}
1;