mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
sys_patch.py: Add comments to kmutil invocation
This commit is contained in:
+25
-13
@@ -146,20 +146,32 @@ class PatchSysVolume:
|
|||||||
print("- Rebuilding Kernel Cache (This may take some time)")
|
print("- Rebuilding Kernel Cache (This may take some time)")
|
||||||
|
|
||||||
if self.constants.detected_os > os_data.os_data.catalina:
|
if self.constants.detected_os > os_data.os_data.catalina:
|
||||||
|
args = [
|
||||||
|
"kmutil",
|
||||||
|
"install",
|
||||||
|
"--volume-root", self.mount_location,
|
||||||
|
# Build Boot, Sys and Aux KC
|
||||||
|
"--update-all",
|
||||||
|
# If multiple kernels found, only build release KCs
|
||||||
|
"--variant-suffix", "release",
|
||||||
|
]
|
||||||
|
|
||||||
if self.constants.detected_os >= os_data.os_data.ventura:
|
if self.constants.detected_os >= os_data.os_data.ventura:
|
||||||
args = [
|
# With Ventura, we're required to provide a KDK in some form
|
||||||
"kmutil", "create",
|
# to rebuild the Kernel Cache
|
||||||
"--volume-root", self.mount_location,
|
#
|
||||||
"--update-all",
|
# However since we already merged the KDK onto root with 'ditto',
|
||||||
"--allow-missing-kdk",
|
# We can add '--allow-missing-kdk' to skip parsing the KDK
|
||||||
"--variant-suffix", "release"
|
#
|
||||||
]
|
# This allows us to only delete/overwrite kexts inside of
|
||||||
else:
|
# /System/Library/Extensions and not the entire KDK
|
||||||
args = [
|
args.append("--allow-missing-kdk")
|
||||||
"kmutil", "install",
|
|
||||||
"--volume-root", self.mount_location,
|
# 'install' and '--update-all' cannot be used together in Ventura.
|
||||||
"--update-all"
|
# kmutil will request the usage of 'create' instead:
|
||||||
]
|
# Warning: kmutil install's usage of --update-all is deprecated.
|
||||||
|
# Use kmutil create --update-install instead'
|
||||||
|
args[1] = "create"
|
||||||
|
|
||||||
if self.needs_kmutil_exemptions is True:
|
if self.needs_kmutil_exemptions is True:
|
||||||
# When installing to '/Library/Extensions', following args skip kext consent
|
# When installing to '/Library/Extensions', following args skip kext consent
|
||||||
|
|||||||
Reference in New Issue
Block a user