summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 103059cd7..7ac795c2c 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -255,8 +255,7 @@ sub choosePartitionsToFormat($$) {
$_->{mntpoint} or next;
add2hash_($_, { toFormat => $_->{notFormatted} });
- $_->{toFormatUnsure} = member($_->{mntpoint}, '/', '/usr');
- $_->{toFormat} ||= $::recovery && delete $_->{toFormatUnsure};
+ $_->{$::recovery ? 'toFormat' : 'toFormatUnsure'} ||= member($_->{mntpoint}, '/', '/usr');
if (!$_->{toFormat}) {
my $t = fsedit::typeOfPart($_->{device});