Class: Bootloader::SystemdBootWidget::SecureBootWidget

Inherits:
CWM::CheckBox
  • Object
show all
Includes:
SystemdBootHelper
Defined in:
src/lib/bootloader/systemdboot_widgets.rb

Overview

Represents switcher for secure boot on EFI

Instance Method Summary collapse

Methods included from SystemdBootHelper

#systemdboot

Constructor Details

#initializeSecureBootWidget

Returns a new instance of SecureBootWidget.



56
57
58
59
60
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 56

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



66
67
68
69
70
71
72
73
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 66

def help
  _(
    "<p><b>Secure Boot Support</b> if checked enables Secure Boot support.<br>" \
    "This does not turn on secure booting. " \
    "It only sets up the boot loader in a way that supports secure booting. " \
    "You still have to enable Secure Boot in the UEFI Firmware.</p> "
  )
end

#initObject



75
76
77
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 75

def init
  self.value = systemdboot.secure_boot
end

#labelObject



62
63
64
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 62

def label
  _("&Secure Boot Support")
end

#storeObject



79
80
81
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 79

def store
  systemdboot.secure_boot = value
end