summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2014-01-11 04:12:05 +0159
committerThomas Backlund <tmb@mageia.org>2014-01-11 04:12:05 +0159
commit98a59e7c00f43fa167ea2c0640811117ff976f78 (patch)
tree6f357e4654336e0ac7ee3eeddbd222dd517644a4
parentcc67352b7a4cc06b127b7ea6194c196cc6fa89f1 (diff)
downloaddrakx-98a59e7c00f43fa167ea2c0640811117ff976f78.tar
drakx-98a59e7c00f43fa167ea2c0640811117ff976f78.tar.gz
drakx-98a59e7c00f43fa167ea2c0640811117ff976f78.tar.bz2
drakx-98a59e7c00f43fa167ea2c0640811117ff976f78.tar.xz
drakx-98a59e7c00f43fa167ea2c0640811117ff976f78.zip
fs/mount_point: detect and suggest /boot/EFI mount point
-rw-r--r--perl-install/fs/mount_point.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/fs/mount_point.pm b/perl-install/fs/mount_point.pm
index 282b28ab6..3fbc65e95 100644
--- a/perl-install/fs/mount_point.pm
+++ b/perl-install/fs/mount_point.pm
@@ -18,6 +18,7 @@ sub guess_mount_point {
'/tmp' => '.X11-unix',
'/usr' => 'src',
'/var' => 'spool',
+ '/boot/EFI' => 'EFI/Boot/bootx64.efi',
);
my $handle = any::inspect($part, $prefix) or return;
@@ -52,8 +53,8 @@ sub suggest_mount_points_always {
my @win = grep { isFat_or_NTFS($_) && !$_->{isMounted} && maybeFormatted($_) && !$_->{is_removable} && $_->{pt_type} != 0x12 && !isRecovery($_) } @$fstab;
log::l("win parts: ", join ",", map { $_->{device} } @win) if @win;
if (@win == 1) {
- #- Suggest /boot/efi on ia64.
- $win[0]{mntpoint} = arch() =~ /ia64/ ? "/boot/efi" : "/media/windows";
+ #- Suggest /boot/EFI on ia64 and x86_64.
+ $win[0]{mntpoint} = arch() =~ /ia64|x86_&4/ && (-e "/sys/firmware/efi" ? "/boot/EFI";
} else {
my %w; foreach (@win) {
my $v = $w{$_->{device_windobe}}++;