From 0f907160598cc726a639fe06d1902f0e0811bb81 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 30 Mar 2015 03:37:51 -0400 Subject: fix getting ESP with "use free space" make sure to not override /boot/EFI mount point with /media/win_X --- perl-install/NEWS | 2 ++ perl-install/fs/mount_point.pm | 2 +- perl-install/install/NEWS | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-install/NEWS b/perl-install/NEWS index 1287430e3..91e9aae6f 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,5 +1,7 @@ - diskdrake: o better fix for fail to read too corrupted partition table + o fix getting ESP with "use free space": + make sure to not override /boot/EFI mount point with /media/win_X o make sure to check for existing ESP on all disks o try to detect recovery partitions on GPT - stage2: diff --git a/perl-install/fs/mount_point.pm b/perl-install/fs/mount_point.pm index 9c6996dc3..e4f4ac1c9 100644 --- a/perl-install/fs/mount_point.pm +++ b/perl-install/fs/mount_point.pm @@ -62,7 +62,7 @@ sub suggest_mount_points_always { if (@ESP) { $ESP[0]{mntpoint} = "/boot/EFI"; } - my @win = grep { isFat_or_NTFS($_) && !$_->{isMounted} && maybeFormatted($_) && !$_->{is_removable} && !isRecovery($_) } @$fstab; + my @win = grep { isFat_or_NTFS($_) && !$_->{isMounted} && maybeFormatted($_) && !$_->{is_removable} && !isRecovery($_) && !isESP($_) } @$fstab; log::l("win parts: ", join ",", map { $_->{device} } @win) if @win; if (@win == 1) { $win[0]{mntpoint} = "/media/windows"; diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 43a10bbc0..b7ae2ae30 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,5 +1,7 @@ - partitionning: o better fix for fail to read too corrupted partition table + o fix getting ESP with "use free space": + make sure to not override /boot/EFI mount point with /media/win_X o make sure to check for existing ESP on all disks o try to detect recovery partitions on GPT -- cgit v1.2.1