Accepting request 112069 from devel:openSUSE:Factory

Fix os-prober fails when OSX partition is present (bnc#747919) (forwarded request 112068 from simontol)

OBS-URL: https://build.opensuse.org/request/show/112069
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=32
This commit is contained in:
Stephan Kulow 2012-04-02 09:23:31 +00:00 committed by Git OBS Bridge
parent 6ee802a52c
commit 9811ff4d39
3 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 29 07:08:38 UTC 2012 - mchang@suse.com
- Add Requires to os-prober as script depends on it for probing
foreign os (bnc#753229)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 21 06:58:43 UTC 2012 - mchang@suse.com Wed Mar 21 06:58:43 UTC 2012 - mchang@suse.com

View File

@ -16,7 +16,6 @@
# #
Name: grub2 Name: grub2
%ifarch x86_64 ppc64 %ifarch x86_64 ppc64
BuildRequires: freetype2-devel-32bit BuildRequires: freetype2-devel-32bit
@ -78,8 +77,10 @@ Patch5: grub2-unused.patch
Patch6: grub2-iterate-and-hook-for-extended-partition.patch Patch6: grub2-iterate-and-hook-for-extended-partition.patch
Patch7: grub2-install-opt-skip-fs-probe.patch Patch7: grub2-install-opt-skip-fs-probe.patch
Patch8: grub2-gcc47.patch Patch8: grub2-gcc47.patch
Patch9: os-prober_osx.patch
PreReq: perl-Bootloader PreReq: perl-Bootloader
Requires: gettext-runtime Requires: gettext-runtime
Requires: os-prober
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
Requires(preun):/sbin/install-info Requires(preun):/sbin/install-info
@ -138,6 +139,7 @@ cd grub-%{version}
%patch6 -p1 %patch6 -p1
%patch7 -p1 %patch7 -p1
%patch8 -p1 %patch8 -p1
%patch9 -p1
cd .. cd ..
# README.openSUSE # README.openSUSE

13
os-prober_osx.patch Normal file
View File

@ -0,0 +1,13 @@
Index: grub-1.99/util/grub.d/30_os-prober.in
===================================================================
--- grub-1.99.orig/util/grub.d/30_os-prober.in
+++ grub-1.99/util/grub.d/30_os-prober.in
@@ -168,7 +168,7 @@
done
;;
macosx)
- OSXUUID="`grub-probe --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
+ OSXUUID="`${grub_probe} --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
osx_entry xnu_kernel 32
osx_entry xnu_kernel64 64
;;