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.



80
81
82
83
84
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 80

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



90
91
92
93
94
95
96
97
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 90

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



99
100
101
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 99

def init
  self.value = systemdboot.secure_boot
end

#labelObject



86
87
88
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 86

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

#storeObject



103
104
105
# File 'src/lib/bootloader/systemdboot_widgets.rb', line 103

def store
  systemdboot.secure_boot = value
end