summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-03-04 12:19:55 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-03-14 22:22:31 +0000
commit50256e67c037ccf31e76cce29a8db082dc8541c9 (patch)
tree03c2c411f6bbd58ad1dc44f56c0bd7fdb0243c66
parentca515b773e51493aee36d67a5893af33101493b1 (diff)
downloaddrakx-50256e67c037ccf31e76cce29a8db082dc8541c9.tar
drakx-50256e67c037ccf31e76cce29a8db082dc8541c9.tar.gz
drakx-50256e67c037ccf31e76cce29a8db082dc8541c9.tar.bz2
drakx-50256e67c037ccf31e76cce29a8db082dc8541c9.tar.xz
drakx-50256e67c037ccf31e76cce29a8db082dc8541c9.zip
Record the partition table type when initialising a partition table.
When performing an automatic install that uses the clear or clearall option, we don't read the current partition table, so the current partition table type was not getting recorded in $hd->{pt_table_type}. This information is needed to determine whether a BIOS boot partition is required.
-rw-r--r--perl-install/partition_table.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index f3a67984f..20d6a2bce 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -274,6 +274,7 @@ sub initialize {
my $current = c::get_disk_type($hd->{file});
$current = 'dos' if $current eq 'msdos';
my $type = $o_type || $current || default_type($hd);
+ $hd->{pt_table_type} = $type;
require "partition_table/$type.pm";
"partition_table::$type"->initialize($hd);