Class: Bootloader::Grub2Widget::ActivateWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::Grub2Widget::ActivateWidget
show all
- Includes:
- Grub2Helper
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents decision if bootloader need activated partition
Instance Method Summary
collapse
#grub2, #grub_default, #password, #stage1
Constructor Details
93
94
95
96
97
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 93
def initialize
textdomain "bootloader"
super
end
|
Instance Method Details
#help ⇒ Object
103
104
105
106
107
108
109
110
111
112
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 103
def help
_(
"<p><b>Set Active Flag in Partition Table for Boot Partition</b>\n" \
"specifies whether the partition containing " \
"the boot loader will have the \"active\" flag." \
" 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
|
#init ⇒ Object
114
115
116
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 114
def init
self.value = stage1.activate?
end
|
#label ⇒ Object
99
100
101
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 99
def label
_("Set &active Flag in Partition Table for Boot Partition")
end
|
#store ⇒ Object
118
119
120
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 118
def store
stage1.activate = checked?
end
|