diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-09-01 10:21:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-09-01 10:21:01 +0000 |
commit | 2fe429a1283bb382c14b3657ab9f752a8b240233 (patch) | |
tree | e8e00ae4bf9ea2e1f4cd00b90df0b63c00af4fde /perl-install/fsedit.pm | |
parent | 63746e561f4804236803986cc19de6664d95dc1c (diff) | |
download | drakx-backup-do-not-use-2fe429a1283bb382c14b3657ab9f752a8b240233.tar drakx-backup-do-not-use-2fe429a1283bb382c14b3657ab9f752a8b240233.tar.gz drakx-backup-do-not-use-2fe429a1283bb382c14b3657ab9f752a8b240233.tar.bz2 drakx-backup-do-not-use-2fe429a1283bb382c14b3657ab9f752a8b240233.tar.xz drakx-backup-do-not-use-2fe429a1283bb382c14b3657ab9f752a8b240233.zip |
no_comment
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r-- | perl-install/fsedit.pm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 6d07796d6..fc555c056 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -3,7 +3,7 @@ package fsedit; use diagnostics; use strict; -use common qw(:common :constant); +use common qw(:common :constant :functional); use partition_table qw(:types); use partition_table_raw; use Data::Dumper; @@ -50,10 +50,8 @@ sub hds($$) { eval { partition_table::read($hd, $flags->{clearall}) }; if ($@) { -# $@ =~ /bad magic number/ or die; - $flags->{eraseBadPartitions} ? - partition_table_raw::zero_MBR($hd) : - die; + &cdie($@) unless $flags->{eraseBadPartitions}; + partition_table_raw::zero_MBR($hd); } push @hds, $hd; } |