diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-19 14:57:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-19 14:57:17 +0000 |
commit | 11b0e9fe0e06fc002cbb4df903dba1541fb88019 (patch) | |
tree | a65d1d60a01c99cd11e8118706abeb36906fc748 /perl-install/partition_table | |
parent | 826763e26b59688ccbb0a5adc5a5e46a32fe532d (diff) | |
download | drakx-backup-do-not-use-11b0e9fe0e06fc002cbb4df903dba1541fb88019.tar drakx-backup-do-not-use-11b0e9fe0e06fc002cbb4df903dba1541fb88019.tar.gz drakx-backup-do-not-use-11b0e9fe0e06fc002cbb4df903dba1541fb88019.tar.bz2 drakx-backup-do-not-use-11b0e9fe0e06fc002cbb4df903dba1541fb88019.tar.xz drakx-backup-do-not-use-11b0e9fe0e06fc002cbb4df903dba1541fb88019.zip |
create partition_table_initialize() and partition_table_clear_and_initialize()
which are wrappers around partition_table::initialize() but which also create
a singleton VG automatically (so that it's easier for the user)
Diffstat (limited to 'perl-install/partition_table')
-rw-r--r-- | perl-install/partition_table/raw.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm index ab9fbba08..925ae6562 100644 --- a/perl-install/partition_table/raw.pm +++ b/perl-install/partition_table/raw.pm @@ -216,11 +216,10 @@ sub clear_existing { partition_table::will_tell_kernel($hd, del => $_) foreach @parts; } -sub zero_MBR_and_dirty { &clear_and_dirty } #- deprecated -sub clear_and_dirty { +#- deprecated +sub zero_MBR_and_dirty { my ($hd) = @_; - $hd->clear_existing; - partition_table::initialize($hd); + fsedit::partition_table_clear_and_initialize([], $hd); } sub read_primary { |