summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 50b676fc0..ad7850d40 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -2629,8 +2629,12 @@ Writes back the boot loader config. Calls the proper write_XYZ() function.
sub install {
my ($bootloader, $all_hds) = @_;
+ my ($efivars, $already_mounted) = mount_efivars() if is_uefi();
+
$bootloader->{keytable} = keytable($bootloader->{keytable}) if $bootloader->{method} eq 'lilo';
action($bootloader, 'install', $all_hds);
+
+ run_program::run('umount', $efivars) if is_uefi() && !$already_mounted;
}
sub ensure_pkg_is_installed {