Verified Commit bc925be4 authored by Filip Danilović's avatar Filip Danilović
Browse files

[bootloader] Expose preseed for rEFInd

Can be used to disable rEFInd installation by setting it to "False" (
capitalization matters! ).
If not specified, and by default it's set to True.
parent a7fedd9d
......@@ -285,7 +285,9 @@ class Install(module.Install):
def refind_install(self):
""" Install REFIND """
if "uefidetect.inst" in self.moduleclass.modules_settings and self.moduleclass.modules_settings["uefidetect.inst"]["uefi"] == True:
if (self.moduleclass.settings["install_refind"] and
"uefidetect.inst" in self.moduleclass.modules_settings and
self.moduleclass.modules_settings["uefidetect.inst"]["uefi"] == True):
try:
efi_part_mount = lib.is_mounted("/boot/efi")
except:
......@@ -363,3 +365,4 @@ class Module(module.Module):
self.cache("grub_cmdline_linux")
self.cache("grub_bootloader_id", "grub")
self.cache("efi_volumeicon", None)
self.cache("install_refind", True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment