diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-02-04 23:46:14 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-02-12 11:54:53 +0000 |
commit | 02ba0f311a04e3fe93985bb75b6e7e99c6315b73 (patch) | |
tree | 3a6b398284cd4d146839a77a5a144c970f357da4 /perl-install/partition_table.pm | |
parent | aeccd33e13b5bd532fe08e5b3f1630935bbd9cfb (diff) | |
download | drakx-02ba0f311a04e3fe93985bb75b6e7e99c6315b73.tar drakx-02ba0f311a04e3fe93985bb75b6e7e99c6315b73.tar.gz drakx-02ba0f311a04e3fe93985bb75b6e7e99c6315b73.tar.bz2 drakx-02ba0f311a04e3fe93985bb75b6e7e99c6315b73.tar.xz drakx-02ba0f311a04e3fe93985bb75b6e7e99c6315b73.zip |
This adds a specific subroutine, fsedit::auto_allocate_boot_bios_parts
that detects if a BIOS boot partition is needed and allocates it if so.
This allows us to relax the rules in fs::any::is_boot_bios_part_needed
to allow the user to manually allocate the BIOS boot partition on a
different device if they so wish.
In the normal case that installation is confined to a single disk,
this will allocate a single BIOS boot partition on that disk. In
the rare case that installation is spread over multiple disks, it
will allocate a BIOS boot partition on every disk. Given that the
BIOS boot partitions are very small and that this is not a normal
use case (see mga#16055), this seems an acceptable quirk - and does
allow the user to then choose any disk when installing the boot
loader.
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r-- | perl-install/partition_table.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index f0cfc0ec2..4b357abb0 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -310,6 +310,7 @@ sub read_primary { bless $hd, "partition_table::$_"; if ($hd->read_primary) { log::l("found a $_ partition table on $hd->{file} at sector 0"); + $hd->{pt_table_type} = $_ if $_ ne 'empty'; return 1; } } |