summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/partitioning_wizard.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-06-30 04:13:15 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-02-10 23:10:05 +0100
commitc36f5bc526c4f46acce03a5061e7a0e26a867337 (patch)
treed52a011a32731abaa6e3a3f62448f9b58cdfc03f /perl-install/fs/partitioning_wizard.pm
parent6945251db17abf6e8cf2946ec15af5739170b43f (diff)
downloaddrakx-c36f5bc526c4f46acce03a5061e7a0e26a867337.tar
drakx-c36f5bc526c4f46acce03a5061e7a0e26a867337.tar.gz
drakx-c36f5bc526c4f46acce03a5061e7a0e26a867337.tar.bz2
drakx-c36f5bc526c4f46acce03a5061e7a0e26a867337.tar.xz
drakx-c36f5bc526c4f46acce03a5061e7a0e26a867337.zip
check that ESP mount point actually is an ESP
fixing grub2 faillure resulting in draklive-install crash (mga#16246)
Diffstat (limited to 'perl-install/fs/partitioning_wizard.pm')
-rw-r--r--perl-install/fs/partitioning_wizard.pm5
1 files changed, 4 insertions, 1 deletions
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;