Class: Bootloader::DefaultSectionWidget
- Inherits:
-
CWM::ComboBox
- Object
- CWM::ComboBox
- Bootloader::DefaultSectionWidget
show all
- Includes:
- Grub2Widget
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
represent choosing default section to boot
Instance Method Summary
(collapse)
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
Returns a new instance of DefaultSectionWidget
540
541
542
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 540
def initialize
textdomain "bootloader"
end
|
Instance Method Details
- (Object) help
548
549
550
551
552
553
554
555
556
557
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 548
def help
_(
"<p> By pressing <b>Set as Default</b> you mark the selected section as\n" \
"the default. When booting, the boot loader will provide a boot menu and\n" \
"wait for the user to select a kernel or OS to boot. If no\n" \
"key is pressed before the timeout, the default kernel or OS will\n" \
"boot. The order of the sections in the boot loader menu can be changed\n" \
"using the <b>Up</b> and <b>Down</b> buttons.</p>\n"
)
end
|
- (Object) init
559
560
561
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 559
def init
self.value = sections.default
end
|
- (Object) items
563
564
565
566
567
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 563
def items
sections.all.map do |section|
[section, section]
end
end
|
- (Object) label
544
545
546
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 544
def label
_("&Default Boot Section")
end
|
- (Object) store
569
570
571
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 569
def store
sections.default = value
end
|