]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
xnu: Add new kernel path to autoconfig.
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 12 Feb 2016 14:42:26 +0000 (15:42 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 12 Feb 2016 14:42:26 +0000 (15:42 +0100)
util/grub.d/10_xnu.in
util/grub.d/30_os-prober.in

index 51ee2f427d26bea1334e4722356bda93d43f1ca5..9c40b4536c8031578488d605942f855b8d676fd6 100644 (file)
@@ -56,6 +56,9 @@ EOF
            fi
            if [ /kernelcache -nt /System/Library/Extensions ]; then
               $1 /kernelcache boot-uuid=\${uuid} rd=*uuid
+           elif [ -f /System/Library/Kernels/kernel ]; then
+              $1 /System/Library/Kernels/kernel boot-uuid=\${uuid} rd=*uuid
+              xnu_kextdir /System/Library/Extensions
            else
               $1 /mach_kernel boot-uuid=\${uuid} rd=*uuid
               if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
index 5604ce2b673485cde468303bfef98e947e9cbbdc..515a68c7aa023afa1fae5fd5d79d450cf76a9935 100644 (file)
@@ -71,6 +71,9 @@ EOF
            fi
            if [ /kernelcache -nt /System/Library/Extensions ]; then
               $1 /kernelcache boot-uuid=\${uuid} rd=*uuid
+           elif [ -f /System/Library/Kernels/kernel ]; then
+              $1 /System/Library/Kernels/kernel boot-uuid=\${uuid} rd=*uuid
+              xnu_kextdir /System/Library/Extensions
            else
               $1 /mach_kernel boot-uuid=\${uuid} rd=*uuid
               if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then