grub: patch out creation of OS X menu entries on non-x86
[ci skip] Closes: #12046 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
859745c0fb
commit
0a4108a9cf
16
srcpkgs/grub/patches/os-prober-osx86.patch
Normal file
16
srcpkgs/grub/patches/os-prober-osx86.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
Patches OS X detection out of os-prober hook on non-x86 architectures. The
|
||||||
|
menu entries generated for those are invalid for non-x86 Mac stuff.
|
||||||
|
--- util/grub.d/30_os-prober.in
|
||||||
|
+++ util/grub.d/30_os-prober.in
|
||||||
|
@@ -42,6 +42,11 @@ if [ -z "${OSPROBED}" ] ; then
|
||||||
|
fi
|
||||||
|
|
||||||
|
osx_entry() {
|
||||||
|
+ # GRUB won't load OS X outside of x86, no entry
|
||||||
|
+ case "x`uname -m`" in
|
||||||
|
+ xi?86|xx86_64) ;;
|
||||||
|
+ *) return ;;
|
||||||
|
+ esac
|
||||||
|
if [ x$2 = x32 ]; then
|
||||||
|
# TRANSLATORS: it refers to kernel architecture (32-bit)
|
||||||
|
bitstr="$(gettext "(32-bit)")"
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'grub'
|
# Template file for 'grub'
|
||||||
pkgname=grub
|
pkgname=grub
|
||||||
version=2.02
|
version=2.02
|
||||||
revision=5
|
revision=6
|
||||||
hostmakedepends="flex freetype-devel font-unifont-bdf"
|
hostmakedepends="flex freetype-devel font-unifont-bdf"
|
||||||
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
||||||
liblzma-devel device-mapper-devel fuse-devel"
|
liblzma-devel device-mapper-devel fuse-devel"
|
||||||
|
|
Loading…
Reference in a new issue