summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-09 11:57:55 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-11 09:39:44 +0200
commit1b96be96d399303bcfa8d0f6c4920880848dac77 (patch)
tree6cea037cfd0c44e014a19e46966be65c1d3bdc26 /perl-install/fsedit.pm
parent72836d6f7cf216e405db6e6675e03ebda63b0655 (diff)
downloaddrakx-1b96be96d399303bcfa8d0f6c4920880848dac77.tar
drakx-1b96be96d399303bcfa8d0f6c4920880848dac77.tar.gz
drakx-1b96be96d399303bcfa8d0f6c4920880848dac77.tar.bz2
drakx-1b96be96d399303bcfa8d0f6c4920880848dac77.tar.xz
drakx-1b96be96d399303bcfa8d0f6c4920880848dac77.zip
add a GRUB_BIOS partitions if needed (mga#18656)
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 672cba2fd..8508391d5 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -55,6 +55,9 @@ sub init_mntpnt_suggestions {
if (!any { isESP($_) } @$fstab) {
$mntpoint = { mntpoint => "/boot/EFI", size => MB(100), pt_type => 0xef, ratio => 1, maxsize => MB(300) };
}
+ } elsif (fs::any::is_boot_bios_part_needed($all_hds, $fstab)) {
+ # suggests a Boot BIOS partition if none is present and if needed (aka !UEFI but disk is GPT partitionned)
+ $mntpoint = { mntpoint => "", size => MB(1), pt_type => 'BIOS_BOOT', ratio => 1, maxsize => MB(2) };
}
return if !$mntpoint;
foreach (keys %suggestions) {