Blame SOURCES/os-prober-no-dummy-mach-kernel.patch

03b69a
From f71f7eb5c492720c24033901ef8c6c420e188ff2 Mon Sep 17 00:00:00 2001
03b69a
From: Peter Jones <pjones@redhat.com>
03b69a
Date: Thu, 10 May 2012 14:47:35 -0400
03b69a
Subject: [PATCH] Don't count our dummy mach_kernel as real MacOS X.
03b69a
03b69a
---
03b69a
 os-probes/mounted/powerpc/20macosx |    2 +-
03b69a
 1 file changed, 1 insertion(+), 1 deletion(-)
03b69a
03b69a
Index: b/os-probes/mounted/powerpc/20macosx
03b69a
===================================================================
03b69a
--- a/os-probes/mounted/powerpc/20macosx
03b69a
+++ b/os-probes/mounted/powerpc/20macosx
03b69a
@@ -21,7 +21,7 @@ esac
03b69a
 # but I don't think it exists on Mac OS <= 9, and it's XML so parsing in
03b69a
 # shell will be nasty.
03b69a
 
03b69a
-if [ -e "$2/mach_kernel" ]; then
03b69a
+if [ -e "$2/mach_kernel" ] && ! dd if="$2/mach_kernel" count=1 bs=5 2>/dev/null | grep -aq Dummy ; then
03b69a
   label="$(count_next_label MacOSX)"
03b69a
   result "$1:Mac OS X:$label:macosx"
03b69a
   exit 0