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

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