diff options
Diffstat (limited to 'perl-install/partition_table/dos.pm')
-rw-r--r-- | perl-install/partition_table/dos.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/partition_table/dos.pm b/perl-install/partition_table/dos.pm index 43243259d..688626d7b 100644 --- a/perl-install/partition_table/dos.pm +++ b/perl-install/partition_table/dos.pm @@ -247,6 +247,12 @@ sub write { 1; } -sub clear_raw { { raw => [ ({}) x $nb_primary ] } } +sub empty_raw { { raw => [ ({}) x $nb_primary ] } } + +sub initialize { + my ($class, $hd) = @_; + $hd->{primary} = empty_raw(); + bless $hd, $class; +} 1; |