diff options
-rw-r--r-- | perl-install/fsedit.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 684d802d7..fc979ce87 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -402,7 +402,8 @@ sub suggest_part { my $hd = fs::get::part2hd($part, $all_hds); my $hd_size = $hd && $hd->{totalsectors}; # nb: no $hd if $part is /dev/mdX - my $has_swap = any { isSwap($_) } fs::get::fstab($all_hds); + my @fstab = $hd->{is_removable} ? partition_table::get_normal_parts($hd) : fs::get::fstab($all_hds); + my $has_swap = any { isSwap($_) } @fstab; my @local_suggestions = grep { $::auto_install || !$_->{mntpoint} && !$_->{VG_name} || !fs::get::has_mntpoint($_->{mntpoint}, $all_hds) || isSwap($_) && !$has_swap } |