Class: Bootloader::Grub2Widget::UpdateNvramWidget

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

Overview

Represents switcher for NVRAM update

Instance Method Summary collapse

Methods included from Grub2Helper

#grub2, #grub_default, #password, #sections, #stage1

Constructor Details

#initializeUpdateNvramWidget

Returns a new instance of UpdateNvramWidget.



375
376
377
378
379
# File 'src/lib/bootloader/grub2_widgets.rb', line 375

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



385
386
387
388
389
390
# File 'src/lib/bootloader/grub2_widgets.rb', line 385

def help
  _("<p><b>Update NVRAM Entry</b> will add nvram entry for the bootloader\n" \
    "in the firmware.\n" \
    "This is usually desirable unless you want to preserve specific settings\n" \
    "or need to work around firmware issues.</p>\n")
end

#initObject



392
393
394
# File 'src/lib/bootloader/grub2_widgets.rb', line 392

def init
  self.value = grub2.update_nvram
end

#labelObject



381
382
383
# File 'src/lib/bootloader/grub2_widgets.rb', line 381

def label
  _("Update &NVRAM Entry")
end

#storeObject



396
397
398
# File 'src/lib/bootloader/grub2_widgets.rb', line 396

def store
  grub2.update_nvram = value
end