Skip to content

Commit

Permalink
remove widgets for trusted grub which is also dropped for grub2
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 3, 2014
1 parent 1329c6a commit 1eea299
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
4 changes: 0 additions & 4 deletions src/include/bootloader/grub/helps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ def initialize_bootloader_grub_helps(include_target)
"boot_boot" => _(
"<p><b>Boot from Boot Partition</b> is one of the recommended options, the other is\n<b>Boot from Root Partition</b>.</p>"
),
"trusted_grub" => _(
"<p><b>Use Trusted Grub</b> means install trusted grub and use it. Option <i>Graphical Menu File</i> will be ignored.\nIt is recommended to install grub to MBR</p>"
),
"boot_mbr" => _(
"<p><b>Boot from Master Boot Record</b> is not recommended if you have another operating system\ninstalled on your computer</p>"
),
Expand Down Expand Up @@ -106,7 +103,6 @@ def initialize_bootloader_grub_helps(include_target)
"timeout" => _("&Timeout in Seconds"),
"default" => _("&Default Boot Section"),
"generic_mbr" => _("Write &generic Boot Code to MBR"),
"trusted_grub" => _("Use &Trusted Grub"),
"boot_custom" => _("Custom Boot Partition"),
"boot_mbr" => _("Boot from Master Boot Record"),
"boot_root" => _("Boot from Root Partition"),
Expand Down
21 changes: 0 additions & 21 deletions src/include/bootloader/grub/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,6 @@ def initialize_bootloader_grub_options(include_target)
Yast.include include_target, "bootloader/grub/helps.rb"
end

def HandleTrusted(widget, event)
event = deep_copy(event)
value = Convert.to_boolean(UI.QueryWidget(Id(widget), :Value))
nil
end

def TrustedWidget
widget = CommonCheckboxWidget(
Ops.get(@grub_descriptions, "trusted_grub", "trusted grub"),
Ops.get(@grub_help_messages, "trusted_grub", "")
)
Ops.set(widget, "opt", [:notify])
Ops.set(
widget,
"handle",
fun_ref(method(:HandleTrusted), "symbol (string, map)")
)
deep_copy(widget)
end

# Init function of widget
# @param [String] widget string id of the widget
def InitPasswdWidget(widget)
Expand Down Expand Up @@ -288,7 +268,6 @@ def GrubOptions
Ops.get(@grub_descriptions, "generic_mbr", "generic mbr"),
Ops.get(@grub_help_messages, "generic_mbr", "")
),
"trusted_grub" => TrustedWidget(),
"hiddenmenu" => CommonCheckboxWidget(
Ops.get(@grub_descriptions, "hiddenmenu", "hidden menu"),
Ops.get(@grub_help_messages, "hiddenmenu", "")
Expand Down
15 changes: 0 additions & 15 deletions src/include/bootloader/routines/global_widgets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,21 +317,6 @@ def LoaderTypeValidate(widget, event)
# @param [String] widget string widget key
# @param [Hash] event map event that caused the operation
def LoaderTypeStore(widget, event)
event = deep_copy(event)
ret = false
if Ops.get(BootCommon.globals, "trusted_grub", "") == "true"
if !Package.Installed("trustedgrub") && Mode.normal
if !PackageSystem.CheckAndInstallPackages(["trustedgrub"])
if !Mode.commandline
Popup.Error(Message.CannotContinueWithoutPackagesInstalled)
end
Builtins.y2error(
"Installation of package trustedgrub failed or aborted"
)
end
end
end

nil
end

Expand Down

0 comments on commit 1eea299

Please sign in to comment.