summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-07-05 23:12:51 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-07-05 23:16:24 +0200
commit6d124136b1fbb2551d651c115de0cff85aca349d (patch)
treeb05d0b63dbdf583e2b7a745998209ef6dd2ce87e /perl-install/fsedit.pm
parentbb6a6b14d66b6d261d73c10840b8ec2ae1589d1a (diff)
downloaddrakx-6d124136b1fbb2551d651c115de0cff85aca349d.tar
drakx-6d124136b1fbb2551d651c115de0cff85aca349d.tar.gz
drakx-6d124136b1fbb2551d651c115de0cff85aca349d.tar.bz2
drakx-6d124136b1fbb2551d651c115de0cff85aca349d.tar.xz
drakx-6d124136b1fbb2551d651c115de0cff85aca349d.zip
enable to set several swap partitions (mga#9874)
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index e4e268ef0..36bda4a14 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -403,7 +403,7 @@ sub suggest_part {
my $has_swap = any { isSwap($_) } fs::get::fstab($all_hds);
my @local_suggestions =
- grep { !$_->{mntpoint} && !$_->{VG_name} || !fs::get::has_mntpoint($_->{mntpoint}, $all_hds) || isSwap($_) && !$has_swap }
+ grep { $::auto_install || !$_->{mntpoint} && !$_->{VG_name} || !fs::get::has_mntpoint($_->{mntpoint}, $all_hds) || isSwap($_) && !$has_swap }
grep { !$_->{min_hd_size} || !$hd_size || $_->{min_hd_size} <= $hd_size }
grep { !$_->{hd} || $_->{hd} eq $part->{rootDevice} }
@$suggestions;