diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-08-08 11:34:19 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-08-08 11:35:20 -0400 |
commit | 0faa0ee1778e403d04cba22067e3edaac9c540bd (patch) | |
tree | 559cbf72de1d4106a2f34074a6a64899ea31ff4a /app-emulation/grub-xen-host | |
parent | app-misc/jq: remove old (diff) | |
download | gentoo-0faa0ee1778e403d04cba22067e3edaac9c540bd.tar.gz gentoo-0faa0ee1778e403d04cba22067e3edaac9c540bd.tar.bz2 gentoo-0faa0ee1778e403d04cba22067e3edaac9c540bd.zip |
app-emulation/grub-xen-host: add support for sys-boot/grub[-multislot]
Package-Manager: portage-2.3.0_p16
Diffstat (limited to 'app-emulation/grub-xen-host')
-rw-r--r-- | app-emulation/grub-xen-host/grub-xen-host-1.0.ebuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/app-emulation/grub-xen-host/grub-xen-host-1.0.ebuild b/app-emulation/grub-xen-host/grub-xen-host-1.0.ebuild index 292c3380101d..6ada0a84dc42 100644 --- a/app-emulation/grub-xen-host/grub-xen-host-1.0.ebuild +++ b/app-emulation/grub-xen-host/grub-xen-host-1.0.ebuild @@ -60,12 +60,22 @@ src_compile() { tar cf memdisk.tar grub.cfg || die "failed to tar" - grub2-mkimage -O x86_64-xen \ - -c grub-bootstrap.cfg \ - -m memdisk.tar \ - -o grub-x86_64-xen.bin \ - /usr/lib/grub/x86_64-xen/*.mod \ - || die "failed to grub-mkimage" + local grub_mkimage=grub-mkimage + if type grub2-mkimage &> /dev/null; then + grub_mkimage=grub2-mkimage + fi + + local args=( + "${grub_mkimage}" + -O x86_64-xen + -c grub-bootstrap.cfg + -m memdisk.tar + -o grub-x86_64-xen.bin + /usr/lib/grub/x86_64-xen/*.mod + ) + + echo "${args[@]}" + "${args[@]}" || die "failed to grub-mkimage" } src_install() { |