diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-09-15 17:31:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-09-15 17:31:22 +0000 |
commit | 71412b3a34bbb1b5056ace130334917bfa6076be (patch) | |
tree | 5af9cdef0ea08f9bb81e1026fc1e27be7990bfb3 /perl-install/install2.pm | |
parent | fec9449e69b0705b7ef85d9617d36e56f66628a4 (diff) | |
download | drakx-71412b3a34bbb1b5056ace130334917bfa6076be.tar drakx-71412b3a34bbb1b5056ace130334917bfa6076be.tar.gz drakx-71412b3a34bbb1b5056ace130334917bfa6076be.tar.bz2 drakx-71412b3a34bbb1b5056ace130334917bfa6076be.tar.xz drakx-71412b3a34bbb1b5056ace130334917bfa6076be.zip |
no_comment
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r-- | perl-install/install2.pm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index cd45e7763..5d864a3f0 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -382,19 +382,21 @@ sub setupSCSI { #------------------------------------------------------------------------------ sub partitionDisks { - $o->{drives} = [ detect_devices::hds() ]; - $o->{hds} = catch_cdie { fsedit::hds($o->{drives}, $o->{partitioning}) } - sub { - $o->ask_warn(_("Error"), + unless ($o->{hds}) { + $o->{drives} = [ detect_devices::hds() ]; + $o->{hds} = catch_cdie { fsedit::hds($o->{drives}, $o->{partitioning}) } + sub { + $o->ask_warn(_("Error"), _("I can't read your partition table, it's too corrupted for me :( I'll try to go on blanking bad partitions")); - 1; - }; + 1; + }; - unless (@{$o->{hds}} > 0) { - $o->setupSCSI if $o->{autoSCSI}; #- ask for an unautodetected scsi card + unless (@{$o->{hds}} > 0) { + $o->setupSCSI if $o->{autoSCSI}; #- ask for an unautodetected scsi card + } } - unless (@{$o->{hds}} > 0) { #- no way + if (@{$o->{hds}} == 0) { #- no way die _("An error has occurred - no valid devices were found on which to create new filesystems. Please check your hardware for the cause of this problem"); } |