diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/any.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 93d5eadd6..13d77d680 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -209,6 +209,12 @@ sub setupBootloaderBefore { splash => $splash, quiet => $quiet); + if (is_uefi()) { + if (my @esp = grep { $_->{mntpoint} eq '/boot/EFI' } @$fstab) { + $bootloader->{removable} = $esp[0]{is_removable}; + } + } + $bootloader->{keytable} ||= keyboard::keyboard2kmap($keyboard); log::l("setupBootloaderBefore end"); } @@ -497,7 +503,7 @@ sub setupBootloader__refind { my $already_installed = $already_in_refind || $already_in_default; my $update_esp = !$already_installed; - my $as_default = $already_in_default; + my $as_default = $already_in_default || $b->{removable}; $in->ask_from_( { title => N("Bootloader Configuration"), |