Add built-in device property for network devices and storage controllers

This commit is contained in:
Hoang Hong Quan
2024-10-28 15:31:08 +07:00
parent 81e2850330
commit 329311e4b4
2 changed files with 12 additions and 1 deletions

View File

@@ -62,7 +62,8 @@
- Allow flexible iGPU configuration between headless and driving a display when a supported discrete GPU is present.
- Force Intel GPUs into VESA mode with HDMI and DVI connectors to simplify installation process.
- Use random layout IDs have comment based on author or motherboard brand for better sound quality.
- Provide configuration required for using OpenCore Legacy Patcher
- Provide configuration required for using OpenCore Legacy Patcher.
- Add built-in device properties for network devices (fix 'Could not communicate with the server' when using iServices) and storage controllers (fix internal drives shown as external).
and more...

View File

@@ -288,6 +288,16 @@ class ConfigProdigy:
"model": gpu_name
}
network_items = hardware_report.get("Network", {}).items()
storage_controllers_items = hardware_report.get("Storage Controllers", {}).items()
for device_name, device_props in list(network_items) + list(storage_controllers_items):
if device_props.get("PCI Path") and not device_props.get("ACPI Path"):
deviceproperties_add[device_props.get("PCI Path")] = {
"built-in": self.utils.hex_to_bytes("01")
}
for key, value in deviceproperties_add.items():
for key_child, value_child in value.items():
if isinstance(value_child, str):