From 30efecf1b9172131e2d2019eca0f72dc63f44c43 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 27 Aug 2002 21:58:56 +0000 Subject: use function fsedit::get_hds which handles errors --- perl-install/standalone/diskdrake | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/perl-install/standalone/diskdrake b/perl-install/standalone/diskdrake index 4ae8c3143..2a6e4c7c3 100755 --- a/perl-install/standalone/diskdrake +++ b/perl-install/standalone/diskdrake @@ -72,19 +72,7 @@ if ($type eq 'fileshare') { $in->exit(0); } -my $all_hds = - catch_cdie { fsedit::hds([ detect_devices::hds() ], {}) } - sub { - my $err = formatError($@); - if ($err =~ s/ask_before_blanking://) { - $in->ask_okcancel(_("Error"), -[_("I can't read your partition table, it's too corrupted for me :( -I'll try to go on blanking bad partitions"), $err]); - } else { - $in->ask_warn('', $err); - 1; - } - }; +my $all_hds = fsedit::get_hds({}, $in); $SIG{__DIE__} = sub { my $m = chomp_($_[0]); log::l("ERROR: $m") }; my $fstab = [ fsedit::get_all_fstab($all_hds) ]; -- cgit v1.2.1