diff --git a/mxmount b/mxmount index d3db82b..6a24eec 100755 --- a/mxmount +++ b/mxmount @@ -62,6 +62,8 @@ system("exportfs -ra"); sub add_data0_if_not_present { my $allmp = $D{$hostname}; + $allmp = [] unless (defined $allmp); + foreach my $mp (sort { $a->{mountpoint} cmp $b->{mountpoint} } @$allmp ) { if ($mp->{label} eq "data0") { return;