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, #stage1
Constructor Details
Returns a new instance of OSProberWidget.
183
184
185
186
187
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 183
def initialize
textdomain "bootloader"
super
end
|
Instance Method Details
#help ⇒ Object
193
194
195
196
197
198
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 193
def help
_(
"<p><b>Probe Foreign OS</b> by means of os-prober for multiboot with " \
"other foreign distribution </p>"
)
end
|
#init ⇒ Object
200
201
202
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 200
def init
self.value = grub_default.os_prober.enabled?
end
|
#label ⇒ Object
189
190
191
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 189
def label
_("Pro&be Foreign OS")
end
|
#store ⇒ Object
204
205
206
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 204
def store
grub_default.os_prober.value = checked?
end
|