From b35e21e0bf648fbc576bbb0fe17e5f1ff0b5d58f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 22 Dec 2004 08:40:20 +0000 Subject: add option no_bad_drives (to workaround bugzilla #12766) --- perl-install/fsedit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/fsedit.pm') 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; -- cgit v1.2.1