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.
375
376
377
378
379
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 375
def initialize
textdomain "bootloader"
super
end
|
Instance Method Details
#help ⇒ Object
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
|
#init ⇒ Object
392
393
394
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 392
def init
self.value = grub2.update_nvram
end
|
#label ⇒ Object
381
382
383
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 381
def label
_("Update &NVRAM Entry")
end
|
#store ⇒ Object
396
397
398
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 396
def store
grub2.update_nvram = value
end
|