From 11b0e9fe0e06fc002cbb4df903dba1541fb88019 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 19 Sep 2007 14:57:17 +0000 Subject: 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) --- perl-install/partition_table/raw.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'perl-install/partition_table') 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 { -- cgit v1.2.1