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 +- perl-install/install2.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; diff --git a/perl-install/install2.pm b/perl-install/install2.pm index 632b33041..abfd03e92 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -390,6 +390,7 @@ sub main { step => sub { $o->{steps}{first} = $v }, meta_class => sub { $o->{meta_class} = $v }, freedriver => sub { $o->{freedriver} = $v }, + no_bad_drives => sub { $o->{partitioning}{no_bad_drives} = 1 }, readonly => sub { $o->{partitioning}{readonly} = $v ne "0" }, display => sub { $o->{display} = $v }, askdisplay => sub { print "Please enter the X11 display to perform the install on ? "; $o->{display} = chomp_(scalar()) }, -- cgit v1.2.1