summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
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 a6eea966c..b9c63ba3e 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -115,7 +115,7 @@ sub get_hds {
foreach my $hd (@drives) {
$hd->{readonly} = $flags->{readonly};
- eval { partition_table::raw::test_for_bad_drives($hd) };
+ eval { partition_table::raw::test_for_bad_drives($hd) if !$flags->{no_bad_drives} };
if (my $err = $@) {
if ($err =~ /write error:/) {
$hd->{readonly} = 1;