Skip to content

Commit

Permalink
Merge pull request #53 from WenhuaChang/master
Browse files Browse the repository at this point in the history
fix grub2-*-efi package not installed
  • Loading branch information
jreidinger committed Mar 13, 2014
2 parents 66edf67 + 7a7fb80 commit 4b250c2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions package/yast2-bootloader.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 12 09:15:33 UTC 2014 - mchang@suse.com

- fix grub2-*-efi package not installed (bnc#867380)
- 3.1.13

-------------------------------------------------------------------
Mon Mar 10 12:07:17 UTC 2014 - jreidinger@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-bootloader.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-bootloader
Version: 3.1.12
Version: 3.1.13
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
11 changes: 10 additions & 1 deletion src/modules/BootGRUB2EFI.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,20 @@ def GetFunctions

# Constructor
def BootGRUB2EFI

if Arch.i386
packages = ["grub2-i386-efi"]
elsif Arch.x86_64
packages = ["grub2-x86_64-efi", "shim"]
else
raise "no grub packages for EFI available for this architecture"
end

Ops.set(
BootCommon.bootloader_attribs,
"grub2-efi",
{
"required_packages" => ["grub2-efi", "shim"],
"required_packages" => packages,
"loader_name" => "GRUB2-EFI",
"initializer" => fun_ref(method(:Initializer), "void ()")
}
Expand Down

0 comments on commit 4b250c2

Please sign in to comment.