summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-05-05 07:33:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-05-05 07:33:30 +0000
commitbbe401b766272753bd1d25942322fc3928132020 (patch)
treec5528626457d8514c6879fa536ab967999d19f64 /perl-install/fsedit.pm
parent4e096379cad750ecfdb7ddd78eeae899380a7696 (diff)
downloaddrakx-backup-do-not-use-bbe401b766272753bd1d25942322fc3928132020.tar
drakx-backup-do-not-use-bbe401b766272753bd1d25942322fc3928132020.tar.gz
drakx-backup-do-not-use-bbe401b766272753bd1d25942322fc3928132020.tar.bz2
drakx-backup-do-not-use-bbe401b766272753bd1d25942322fc3928132020.tar.xz
drakx-backup-do-not-use-bbe401b766272753bd1d25942322fc3928132020.zip
no_comment
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 2c5e90aa2..844762905 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -177,6 +177,7 @@ sub suggest_part($$$;$) {
my ($hd, $part, $hds, $suggestions) = @_;
$suggestions ||= \@suggestions;
+
my $has_swap = grep { isSwap($_) } get_fstab(@$hds);
my ($best, $second) =
@@ -184,7 +185,7 @@ sub suggest_part($$$;$) {
grep { $_->{size} <= ($part->{maxsize} || $part->{size}) }
grep { !has_mntpoint($_->{mntpoint}, $hds) || isSwap($_) && !$has_swap }
grep { !$_->{hd} || $_->{hd} eq $hd->{device} }
- grep { !$part->{type} || $part->{type} == $_->{type} }
+ grep { !$part->{type} || $part->{type} == $_->{type} || isTrueFS($part->{type}) && isTrueFS($_->{type}) }
@$suggestions or return;
#- if (arch() =~ /^i386/) {