summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-11-21 11:12:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-11-21 11:12:19 +0000
commite7824747d4e6dff795518d8f70b82ac08fa332f2 (patch)
treec94614d18d370e85742264c4d3d192a234a3d553 /perl-install/fsedit.pm
parentdee901a3fde82083a630082f04c0139c73ba248f (diff)
downloaddrakx-backup-do-not-use-e7824747d4e6dff795518d8f70b82ac08fa332f2.tar
drakx-backup-do-not-use-e7824747d4e6dff795518d8f70b82ac08fa332f2.tar.gz
drakx-backup-do-not-use-e7824747d4e6dff795518d8f70b82ac08fa332f2.tar.bz2
drakx-backup-do-not-use-e7824747d4e6dff795518d8f70b82ac08fa332f2.tar.xz
drakx-backup-do-not-use-e7824747d4e6dff795518d8f70b82ac08fa332f2.zip
(suggestions_mntpoint): if there's no server suggestion, use the simple
one, so that 'simple' is the only one required when someone modifies %fsedit::suggestions
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 1061fb7a0..9a3f0bb32 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -393,7 +393,7 @@ sub computeSize {
sub suggest_part {
my ($part, $all_hds, $suggestions) = @_;
- $suggestions ||= $suggestions{server};
+ $suggestions ||= $suggestions{server} || $suggestions{simple};
my $has_swap = grep { isSwap($_) } get_all_fstab($all_hds);
@@ -422,7 +422,7 @@ sub suggest_part {
sub suggestions_mntpoint {
my ($all_hds) = @_;
sort grep { !/swap/ && !has_mntpoint($_, $all_hds) }
- (@suggestions_mntpoints, map { $_->{mntpoint} } @{$suggestions{server}});
+ (@suggestions_mntpoints, map { $_->{mntpoint} } @{$suggestions{server} || $suggestions{simple}});
}
#-sub partitionDrives {