diff --git a/Changelog.md b/Changelog.md index f0af1c11..503a7e98 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ OpenCore Changelog - Added tool to extract vendor secure boot certificate from GRUB shim file - Added `BridgeOSHardwareModel` NVRAM variable to fix T2 SB AP models on macOS 12 - Changed `Default` Apple Secure Boot model to match SMBIOS for macOS 12 +- Fixed `opencore-version` not being added to NVRAM variables #### v0.7.3 - Improved SSDT-PNLF compatibility with CFL+ graphics diff --git a/Docs/Configuration.pdf b/Docs/Configuration.pdf index 2c3468f0..240486cf 100644 Binary files a/Docs/Configuration.pdf and b/Docs/Configuration.pdf differ diff --git a/Docs/Configuration.tex b/Docs/Configuration.tex index 1a8d76cb..d5aecb1b 100755 --- a/Docs/Configuration.tex +++ b/Docs/Configuration.tex @@ -3965,6 +3965,8 @@ u=$(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | sed 's/.*GPT,\([^,]*\ \begin{lstlisting}[label=nvramver, style=ocbash] nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:opencore-version \end{lstlisting} + If the OpenCore version is not exposed the variable will contain + \texttt{UNK-000-0000-00-00} sequence. To obtain OEM information, use the following commands in macOS: \begin{lstlisting}[label=nvramoem, style=ocbash] diff --git a/Docs/Differences/Differences.pdf b/Docs/Differences/Differences.pdf index c6156697..81b6de3b 100644 Binary files a/Docs/Differences/Differences.pdf and b/Docs/Differences/Differences.pdf differ diff --git a/Docs/Differences/Differences.tex b/Docs/Differences/Differences.tex index 954ce6fb..89982d7e 100644 --- a/Docs/Differences/Differences.tex +++ b/Docs/Differences/Differences.tex @@ -1,7 +1,7 @@ \documentclass[]{article} %DIF LATEXDIFF DIFFERENCE FILE %DIF DEL PreviousConfiguration.tex Sun Sep 12 01:31:15 2021 -%DIF ADD ../Configuration.tex Sun Oct 3 09:32:34 2021 +%DIF ADD ../Configuration.tex Sun Oct 3 16:07:47 2021 \usepackage{lmodern} \usepackage{amssymb,amsmath} @@ -4035,6 +4035,9 @@ u=$(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | sed 's/.*GPT,\([^,]*\ \begin{lstlisting}[label=nvramver, style=ocbash] nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:opencore-version \end{lstlisting} + \DIFaddbegin \DIFadd{If the OpenCore version is not exposed the variable will contain + }\texttt{\DIFadd{UNK-000-0000-00-00}} \DIFadd{sequence. +}\DIFaddend To obtain OEM information, use the following commands in macOS: \begin{lstlisting}[label=nvramoem, style=ocbash] diff --git a/Docs/Errata/Errata.pdf b/Docs/Errata/Errata.pdf index f3481dad..6b582ecb 100644 Binary files a/Docs/Errata/Errata.pdf and b/Docs/Errata/Errata.pdf differ diff --git a/Library/OcMainLib/OpenCoreNvram.c b/Library/OcMainLib/OpenCoreNvram.c index e61d547f..a185bbd9 100644 --- a/Library/OcMainLib/OpenCoreNvram.c +++ b/Library/OcMainLib/OpenCoreNvram.c @@ -93,6 +93,13 @@ OcReportVersion ( AsciiStrLen (Version), (VOID *) Version ); + } else { + OcSetSystemVariable ( + OC_VERSION_VARIABLE_NAME, + OPEN_CORE_NVRAM_ATTR, + L_STR_LEN ("UNK-000-0000-00-00"), + "UNK-000-0000-00-00" + ); } }