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.



458
459
460
461
462
# File 'src/lib/bootloader/grub2_widgets.rb', line 458

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



468
469
470
471
472
473
# File 'src/lib/bootloader/grub2_widgets.rb', line 468

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



475
476
477
# File 'src/lib/bootloader/grub2_widgets.rb', line 475

def init
  self.value = grub2.update_nvram
end

#labelObject



464
465
466
# File 'src/lib/bootloader/grub2_widgets.rb', line 464

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

#storeObject



479
480
481
# File 'src/lib/bootloader/grub2_widgets.rb', line 479

def store
  grub2.update_nvram = value
end