Class: Bootloader::Grub2Widget::PMBRWidget
- Inherits:
-
CWM::ComboBox
- Object
- CWM::ComboBox
- Bootloader::Grub2Widget::PMBRWidget
show all
- Includes:
- Grub2Helper
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents Protective MBR action
Instance Method Summary
collapse
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
Returns a new instance of PMBRWidget.
215
216
217
218
219
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 215
def initialize
textdomain "bootloader"
super
end
|
Instance Method Details
#help ⇒ Object
225
226
227
228
229
230
231
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 225
def help
_(
"<p><b>Protective MBR flag</b> is expert only settings, that is needed " \
"only on exotic hardware. For details see Protective MBR in GPT disks. " \
"Do not touch if you are not sure.</p>"
)
end
|
#init ⇒ Object
233
234
235
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 233
def init
self.value = grub2.pmbr_action
end
|
#items ⇒ Object
237
238
239
240
241
242
243
244
245
246
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 237
def items
[
[:add, _("set")],
[:remove, _("remove")],
[:nothing, _("do not change")]
]
end
|
#label ⇒ Object
221
222
223
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 221
def label
_("&Protective MBR flag")
end
|
#store ⇒ Object
248
249
250
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 248
def store
grub2.pmbr_action = value
end
|