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

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