From c36f5bc526c4f46acce03a5061e7a0e26a867337 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 30 Jun 2015 04:13:15 -0400 Subject: check that ESP mount point actually is an ESP fixing grub2 faillure resulting in draklive-install crash (mga#16246) --- perl-install/fs/partitioning_wizard.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index f79b72718..6290e8ccb 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -71,9 +71,12 @@ Then choose action ``Mount point'' and set it to `/'"), 1) or return; if (!any { isSwap($_) } @fstab) { $ok &&= $in->ask_okcancel('', N("You do not have a swap partition.\n\nContinue anyway?")); } - if (is_uefi() && !fs::get::has_mntpoint("/boot/EFI", $all_hds)) { + if (is_uefi()) { + my $part = fs::get::has_mntpoint("/boot/EFI", $all_hds); + if (!$part || !isESP($part)) { $in->ask_warn('', N("You must have a ESP FAT32 partition mounted in /boot/EFI")); $ok = ''; + } } } until $ok; 1; -- cgit v1.2.1