diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-08-09 08:23:57 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-08-09 08:23:57 +0000 |
commit | 2b945c8178c4ae57d592c199a24f09ff7e0812ec (patch) | |
tree | fbb0c4a85487cfed78376a6778fb4e164dffd281 /perl-install/partition_table_raw.pm | |
parent | 08a1b5b9a132bab1d360d14b1a78815261bcb7a0 (diff) | |
download | drakx-2b945c8178c4ae57d592c199a24f09ff7e0812ec.tar drakx-2b945c8178c4ae57d592c199a24f09ff7e0812ec.tar.gz drakx-2b945c8178c4ae57d592c199a24f09ff7e0812ec.tar.bz2 drakx-2b945c8178c4ae57d592c199a24f09ff7e0812ec.tar.xz drakx-2b945c8178c4ae57d592c199a24f09ff7e0812ec.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r-- | perl-install/partition_table_raw.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm index 973961f5a..67223e392 100644 --- a/perl-install/partition_table_raw.pm +++ b/perl-install/partition_table_raw.pm @@ -98,4 +98,10 @@ sub write($$$) { syswrite F, $magic, length $magic or return 0; 1; } -sub zero_MBR($) { &write($_[0], 0, [ {} x $nb_primary ]); } + +sub clear_raw { { raw => [ ({}) x $nb_primary ] } } + +sub zero_MBR($) { + $_[0]->{primary} = clear_raw(); + delete $_[0]->{extended}; +} |