diff options
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r-- | perl-install/fs.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm index 3d9628071..c23ee948f 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -60,10 +60,10 @@ sub check_mounted($) { } } -sub get_mntpoints_from_fstab($) { - my ($fstab) = @_; +sub get_mntpoints_from_fstab { + my ($fstab, $prefix) = @_; - foreach (read_fstab('/etc/fstab')) { + foreach (read_fstab("$prefix/etc/fstab")) { foreach my $p (@$fstab) { $p->{device} eq $_->{device} or next; $p->{mntpoint} ||= $_->{mntpoint}; |