mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Add apfs_aligned.efi driver
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# OpenCore Legacy Patcher changelog
|
# OpenCore Legacy Patcher changelog
|
||||||
|
|
||||||
## 3.0.0
|
## 3.0.0
|
||||||
|
- Restore support for FileVault 2 on macOS 26
|
||||||
|
|
||||||
## 2.4.0
|
## 2.4.0
|
||||||
- Reduce CPU usage on main UI thread
|
- Reduce CPU usage on main UI thread
|
||||||
|
|||||||
@@ -322,6 +322,10 @@ class Constants:
|
|||||||
return self.payload_path / Path("ACPI/SSDT-DGPU.aml")
|
return self.payload_path / Path("ACPI/SSDT-DGPU.aml")
|
||||||
|
|
||||||
# Drivers
|
# Drivers
|
||||||
|
@property
|
||||||
|
def sequoia_apfs_driver_path(self):
|
||||||
|
return self.payload_path / Path("Drivers/apfs_aligned.efi")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def nvme_driver_path(self):
|
def nvme_driver_path(self):
|
||||||
return self.payload_path / Path("Drivers/NvmExpressDxe.efi")
|
return self.payload_path / Path("Drivers/NvmExpressDxe.efi")
|
||||||
|
|||||||
@@ -216,6 +216,14 @@ class BuildFirmware:
|
|||||||
if not "CPU Generation" in smbios_data.smbios_dictionary[self.model]:
|
if not "CPU Generation" in smbios_data.smbios_dictionary[self.model]:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# APFS check
|
||||||
|
# The macOS 26 APFS EFI driver's FileVault 2 implementation is broken, and
|
||||||
|
# must be replaced with the macOS 15 APFS EFI driver.
|
||||||
|
logging.info("- Enabling macOS 26 FileVault 2 support")
|
||||||
|
self.config["UEFI"]["APFS"]["EnableJumpstart"] = False
|
||||||
|
shutil.copy(self.constants.sequoia_apfs_driver_path, self.constants.drivers_path)
|
||||||
|
support.BuildSupport(self.model, self.constants, self.config).get_efi_binary_by_path("apfs_aligned.efi", "UEFI", "Drivers")["Enabled"] = True
|
||||||
|
|
||||||
# Exfat check
|
# Exfat check
|
||||||
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] < cpu_data.CPUGen.sandy_bridge.value:
|
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] < cpu_data.CPUGen.sandy_bridge.value:
|
||||||
# Sandy Bridge and newer Macs natively support ExFat
|
# Sandy Bridge and newer Macs natively support ExFat
|
||||||
|
|||||||
@@ -2936,6 +2936,18 @@
|
|||||||
<key>LoadEarly</key>
|
<key>LoadEarly</key>
|
||||||
<false/>
|
<false/>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string></string>
|
||||||
|
<key>Path</key>
|
||||||
|
<string>apfs_aligned.efi</string>
|
||||||
|
<key>Enabled</key>
|
||||||
|
<false/>
|
||||||
|
<key>Arguments</key>
|
||||||
|
<string></string>
|
||||||
|
<key>LoadEarly</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user