diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-03-04 12:34:09 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-03-14 22:22:31 +0000 |
commit | 299738fd1af3a9d854e00a2c3a4e743cf6ec15f4 (patch) | |
tree | ecdd0fccc36be21ab73872cbe0e00373f0369e54 /perl-install/partition_table/raw.pm | |
parent | 50256e67c037ccf31e76cce29a8db082dc8541c9 (diff) | |
download | drakx-299738fd1af3a9d854e00a2c3a4e743cf6ec15f4.tar drakx-299738fd1af3a9d854e00a2c3a4e743cf6ec15f4.tar.gz drakx-299738fd1af3a9d854e00a2c3a4e743cf6ec15f4.tar.bz2 drakx-299738fd1af3a9d854e00a2c3a4e743cf6ec15f4.tar.xz drakx-299738fd1af3a9d854e00a2c3a4e743cf6ec15f4.zip |
Remove redundant code when initialising a partition table.
Now we force the kernel to reread the partition table when we initialise
it, there's no need to also inform it that we've deleted all the existing
partitions.
Diffstat (limited to 'perl-install/partition_table/raw.pm')
-rw-r--r-- | perl-install/partition_table/raw.pm | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm index ebb20b179..8ea1ddb1d 100644 --- a/perl-install/partition_table/raw.pm +++ b/perl-install/partition_table/raw.pm @@ -226,12 +226,6 @@ sub raw_add { sub zero_MBR { &partition_table::initialize } #- deprecated -sub clear_existing { - my ($hd) = @_; - my @parts = (partition_table::get_normal_parts($hd), if_($hd->{primary}{extended}, $hd->{primary}{extended})); - partition_table::will_tell_kernel($hd, del => $_) foreach @parts; -} - #- deprecated sub zero_MBR_and_dirty { my ($hd) = @_; |