mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-21 18:40:16 +10:00
Add new daemon for update handling
Currently developed to handle bug in macOS Sonoma that fails to clear problamatic kernel extensions in /Library/Extensions which could result in update failures from 14.0 to 14.1
This commit is contained in:
@@ -61,7 +61,7 @@ class InitializeLoggingSupport:
|
||||
"""
|
||||
|
||||
base_path = Path("~/Library/Logs").expanduser()
|
||||
if not base_path.exists():
|
||||
if not base_path.exists() or str(base_path).startswith("/var/root/"):
|
||||
# Likely in an installer environment, store in /Users/Shared
|
||||
base_path = Path("/Users/Shared")
|
||||
else:
|
||||
@@ -71,7 +71,7 @@ class InitializeLoggingSupport:
|
||||
try:
|
||||
base_path.mkdir()
|
||||
except Exception as e:
|
||||
logging.error(f"Failed to create Dortania folder: {e}")
|
||||
print(f"Failed to create Dortania folder: {e}")
|
||||
base_path = Path("/Users/Shared")
|
||||
|
||||
self.log_filepath = Path(f"{base_path}/{self.log_filename}").expanduser()
|
||||
@@ -194,6 +194,7 @@ class InitializeLoggingSupport:
|
||||
logging.info('#' * str_len)
|
||||
|
||||
logging.info("Log file set:")
|
||||
logging.info(f" {self.log_filepath}")
|
||||
# Display relative path to avoid disclosing user's username
|
||||
try:
|
||||
path = self.log_filepath.relative_to(Path.home())
|
||||
|
||||
Reference in New Issue
Block a user