From 50256e67c037ccf31e76cce29a8db082dc8541c9 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 4 Mar 2017 12:19:55 +0000 Subject: 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. --- perl-install/partition_table.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/partition_table.pm') 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); -- cgit v1.2.1