Class: Bootloader::Grub2Widget::UpdateNvramWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::Grub2Widget::UpdateNvramWidget
show all
- Includes:
- Grub2Helper
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents switcher for NVRAM update
Instance Method Summary
collapse
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
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
#help ⇒ Object
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
|
#init ⇒ Object
475
476
477
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 475
def init
self.value = grub2.update_nvram
end
|
#label ⇒ Object
464
465
466
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 464
def label
_("Update &NVRAM Entry")
end
|
#store ⇒ Object
479
480
481
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 479
def store
grub2.update_nvram = value
end
|