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/NEWS | 1 + perl-install/fs/partitioning_wizard.pm | 5 ++++- perl-install/install/NEWS | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index 4eba2289a..4f3c28ff3 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,5 +1,6 @@ - library (for draklive-install): o check ESP has the right fs type (mga#16246) + o check that ESP mount point actually is an ESP Version 17.16 - 25 January 2016 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; diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 5f44132c5..ce842148e 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,5 +1,6 @@ - partionning: o check ESP has the right fs type (mga#16246) + o check that ESP mount point actually is an ESP Version 17.17 - 29 January 2016 -- cgit v1.2.1