Class: Bootloader::GenericMBRWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::GenericMBRWidget
show all
- Includes:
- Grub2Widget
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents decision if generic MBR have to be installed on disk
Instance Method Summary
(collapse)
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
Returns a new instance of GenericMBRWidget
116
117
118
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 116
def initialize
textdomain "bootloader"
end
|
Instance Method Details
- (Object) help
124
125
126
127
128
129
130
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 124
def help
_(
"<p><b>Write generic Boot Code to MBR</b> replace the master boot" \
" record of your disk with generic code (OS independent code which\n" \
"boots the active partition).</p>"
)
end
|
- (Object) init
132
133
134
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 132
def init
self.value = stage1.generic_mbr?
end
|
- (Object) label
120
121
122
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 120
def label
_("Write &generic Boot Code to MBR")
end
|
- (Object) store
136
137
138
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 136
def store
stage1.generic_mbr = checked?
end
|