Skip to content

Commit

Permalink
Mac OS Sonoma 14.3.1 update && fixed typo in RestrictEvents kext NVRA…
Browse files Browse the repository at this point in the history
…M flag revpatch => now incremental OS updates should work fine after reverting OCLP root patches (if were enabled)
  • Loading branch information
bestplay9384 committed Feb 10, 2024
1 parent c15e2ab commit cf46a88
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 18 deletions.
2 changes: 1 addition & 1 deletion EFI/OC/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@
Rg==
</data>
<key>boot-args</key>
<string>keepsyms=1 debug=0x100 agdpmod=pikera -wegnoigpu -ctssmt -revpatch=sbvmm</string>
<string>keepsyms=1 debug=0x100 agdpmod=pikera -wegnoigpu -ctssmt revpatch=sbvmm</string>
<key>csr-active-config</key>
<data>
AwgAAA==
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Gigabyte Z690 Gaming X DDR4 + i7 12700K + RX 5700 XT

## Last Updated Configuration Summary
- Mac OS Sonoma 14.3
- Mac OS Sonoma 14.3.1
- OpenCore: 0.9.8

## Hardware Specification
Expand All @@ -25,7 +25,9 @@
- `agdpmod=pikera` for AMD dGPU
- [PlatformInfo](https://dortania.github.io/OpenCore-Install-Guide/config.plist/comet-lake.html#platforminfo)
1. Copy `_/scripts/platformInfo.dist` file to `_scripts/platformInfo` and fullfill platformInfo parameters inside this file
2. Use `sh _/scripts/apply.sh` command to apply Your values to config.plist
2. Then:
1. To APPLY parameters to config.plist use command: `sh _/scripts/run.sh --apply`
2. To REVERT parameters from config.plist use command: `sh _/scripts/run.sh --revert`
3. You can also use OpenCore Configurator to generate & fill automatically OR use GenSMBIOS to generate only
4. Remember to use correct SMBIOS Type when generating
5. Scripts are included for faster cleaning unnecessary parameters on my end
Expand Down
8 changes: 0 additions & 8 deletions _/scripts/apply.sh

This file was deleted.

7 changes: 0 additions & 7 deletions _/scripts/remove.sh

This file was deleted.

54 changes: 54 additions & 0 deletions _/scripts/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash
DIR_PREFIX=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
CONFIG_FILE="${DIR_PREFIX}/../../EFI/OC/config.plist"
VARIABLES_FILE="${DIR_PREFIX}/platformInfo"

ensure_file_exists() {
if [ ! -e $1 ]; then
echo "File '$1' not found!"

exit 1
fi
}

apply_plutil_value() {
plutil -replace "$1" "-$2" "$3" $CONFIG_FILE && echo "$1: $3 ($2)"
}

ensure_file_exists $CONFIG_FILE
ensure_file_exists $VARIABLES_FILE

source $VARIABLES_FILE

case "$1" in
--apply)
apply_plutil_value "PlatformInfo.Generic.MLB" "string" $MLB
apply_plutil_value "PlatformInfo.Generic.ROM" "data" $ROM
apply_plutil_value "PlatformInfo.Generic.SystemSerialNumber" "string" $SystemSerialNumber
apply_plutil_value "PlatformInfo.Generic.SystemUUID" "string" $SystemUUID

echo "APPLIED!"

exit 0
;;
--revert)
apply_plutil_value "PlatformInfo.Generic.MLB" "string" "[REPLACE]"
apply_plutil_value "PlatformInfo.Generic.ROM" "string" "[REPLACE]"
apply_plutil_value "PlatformInfo.Generic.SystemSerialNumber" "string" "[REPLACE]"
apply_plutil_value "PlatformInfo.Generic.SystemUUID" "string" "[REPLACE]"

echo "REVERTED!"

exit 0
;;
*)
echo "Nothing to do."

exit 0
;;
esac
exit 0




0 comments on commit cf46a88

Please sign in to comment.