summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2020-12-21 14:17:11 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2020-12-21 16:42:31 +0000
commita9c15e5e653735f2f1bf85710cc6e30236cd2ee6 (patch)
tree5a67bc560912f09ad3eae69e8db863b3c125e493 /perl-install/any.pm
parent7a274f7c4dc7f2d88b2655ea3a151a0063ca3e39 (diff)
downloaddrakx-a9c15e5e653735f2f1bf85710cc6e30236cd2ee6.tar
drakx-a9c15e5e653735f2f1bf85710cc6e30236cd2ee6.tar.gz
drakx-a9c15e5e653735f2f1bf85710cc6e30236cd2ee6.tar.bz2
drakx-a9c15e5e653735f2f1bf85710cc6e30236cd2ee6.tar.xz
drakx-a9c15e5e653735f2f1bf85710cc6e30236cd2ee6.zip
Add option to configure rEFInd to not use EFI NVRAM (mga#27838)
The combination of this and installing in \EFI\BOOT provides a workaround for machines where the NVRAM is broken or worn out.
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index bf35e8ec0..24c3575ad 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -509,6 +509,8 @@ sub setupBootloader__refind {
my $update_esp = !$already_installed;
my $as_default = $already_in_default || $b->{removable};
+ my $use_nvram = $b->{use_nvram};
+ $use_nvram //= 1;
$in->ask_from_(
{
title => N("Bootloader Configuration"),
@@ -519,6 +521,8 @@ sub setupBootloader__refind {
val => \$update_esp, type => 'bool', disabled => sub { !$already_installed } },
{ text => N("Install in /EFI/BOOT (removable device or workaround for some BIOSs)"),
val => \$as_default, type => 'bool', disabled => sub { !$update_esp } },
+ { text => N("Configure rEFInd to store its variables in the EFI NVRAM"),
+ val => \$use_nvram, type => 'bool' },
]
) or return 0;
@@ -527,6 +531,7 @@ sub setupBootloader__refind {
} else {
$b->{install_mode} = $as_default ? 'no_install' : 'nvram_only';
}
+ $b->{use_nvram} = $use_nvram;
if (my @esp = grep { $_->{mntpoint} eq '/boot/EFI' } @$fstab) {
$b->{esp_device} = $esp[0]{real_device} || fs::wild_device::from_part('', $esp[0]);
}