Class: Bootloader::ActivateWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::ActivateWidget
show all
- Includes:
- Grub2Widget
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents decision if bootloader need activated partition
Instance Method Summary
(collapse)
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
Returns a new instance of ActivateWidget
85
86
87
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 85
def initialize
textdomain "bootloader"
end
|
Instance Method Details
- (Object) help
93
94
95
96
97
98
99
100
101
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 93
def help
_(
"<p><b>Set active Flag in Partition Table for Boot Partition</b><br>\n" \
"To activate the partition which contains the boot loader." \
" The generic MBR code will then\n" \
"boot the active partition. Older BIOSes require one partition to be active even\n" \
"if the boot loader is installed in the MBR.</p>"
)
end
|
- (Object) init
103
104
105
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 103
def init
self.value = stage1.activate?
end
|
- (Object) label
89
90
91
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 89
def label
_("Set &active Flag in Partition Table for Boot Partition")
end
|
- (Object) store
107
108
109
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 107
def store
stage1.activate = checked?
end
|