Skip to content

Commit

Permalink
do not show options for legacy intel on non intel architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 26, 2014
1 parent 30fb721 commit 1c6678c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/include/bootloader/grub2/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ def initialize_bootloader_grub2_dialogs(include_target)
def boot_code_tab
lt = BootCommon.getLoaderType(false)

legacy_intel = (Arch.x86_64 || Arch.i386) && lt != "grub2-efi"

{
"id" => "boot_code_tab",
"header" => _("Boot Code Options"),
# if name is not included, that it is not displayed
"widget_names" => lt == "grub2-efi" ? ["distributor"] :
["distributor", "activate", "generic_mbr"],
"widget_names" => legacy_intel ? ["distributor", "activate", "generic_mbr"] :
["distributor"],
"contents" => VBox(
VSpacing(1),
MarginBox(1, 0.5, "distributor"),
Expand Down

0 comments on commit 1c6678c

Please sign in to comment.