Class: Bootloader::Grub2Widget::OSProberWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::Grub2Widget::OSProberWidget
show all
- Includes:
- Grub2Helper
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents if os prober should be run
Instance Method Summary
collapse
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
Returns a new instance of OSProberWidget.
185
186
187
188
189
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 185
def initialize
textdomain "bootloader"
super
end
|
Instance Method Details
#help ⇒ Object
195
196
197
198
199
200
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 195
def help
_(
"<p><b>Probe Foreign OS</b> by means of os-prober for multiboot with " \
"other foreign distribution </p>"
)
end
|
#init ⇒ Object
202
203
204
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 202
def init
self.value = grub_default.os_prober.enabled?
end
|
#label ⇒ Object
191
192
193
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 191
def label
_("Pro&be Foreign OS")
end
|
#store ⇒ Object
206
207
208
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 206
def store
grub_default.os_prober.value = checked?
end
|