summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 8e63218d9..a8d07edb2 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -142,8 +142,9 @@ sub add2all_hds {
isThisFs('nfs', $_) ? 'nfss' :
isThisFs('smbfs', $_) ? 'smbs' :
isThisFs('davfs', $_) ? 'davs' :
+ isTrueFS($_) || isSwap($_) || isOtherAvailableFS($_) ? '' :
'special';
- push @{$all_hds->{$s}}, $_;
+ push @{$all_hds->{$s}}, $_ if $s;
}
}
@@ -194,6 +195,13 @@ sub merge_info_from_fstab {
merge_fstabs($loose, $fstab, @l);
}
+# - when using "$loose", it does not merge in type&options from the fstab
+sub get_info_from_fstab {
+ my ($all_hds, $prefix) = @_;
+ my @l = read_fstab($prefix, "/etc/fstab", 'keep_freq_passno');
+ add2all_hds($all_hds, @l)
+}
+
sub prepare_write_fstab {
my ($fstab, $prefix, $keep_smb_credentials) = @_;
$prefix ||= '';