summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-22 08:40:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-22 08:40:20 +0000
commitb35e21e0bf648fbc576bbb0fe17e5f1ff0b5d58f (patch)
tree1c18737e963fd577fc62cf8cc4c615b7f01940b9
parentd648c6c5c257c541e8cbb8253d4f3ed1f275b703 (diff)
downloaddrakx-b35e21e0bf648fbc576bbb0fe17e5f1ff0b5d58f.tar
drakx-b35e21e0bf648fbc576bbb0fe17e5f1ff0b5d58f.tar.gz
drakx-b35e21e0bf648fbc576bbb0fe17e5f1ff0b5d58f.tar.bz2
drakx-b35e21e0bf648fbc576bbb0fe17e5f1ff0b5d58f.tar.xz
drakx-b35e21e0bf648fbc576bbb0fe17e5f1ff0b5d58f.zip
add option no_bad_drives (to workaround bugzilla #12766)
-rw-r--r--perl-install/fsedit.pm2
-rw-r--r--perl-install/install2.pm1
2 files changed, 2 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;
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(<STDIN>)) },