diff options
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r-- | perl-install/fsedit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index fb2703e8f..62c384832 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -42,7 +42,7 @@ sub hds($$) { eval { $rc = partition_table::read($hd, $flags->{clearall}) }; if ($@) { $@ =~ /bad magic number/ or die; - $flags->{forcezero} && !$::testing ? partition_table_raw::zero_MBR($hd) : die; + partition_table_raw::zero_MBR($hd) if $flags->{forcezero}; } $rc ? push @hds, $hd : log::l("An error occurred reading the partition table for the block device $_->{device}"); } |