mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
sys_patch_auto.py: Change external detection var
Users with external SSDs as macOS installers will report as not removable, however will still report ejectable
This commit is contained in:
@@ -139,8 +139,8 @@ class AutomaticSysPatch:
|
|||||||
|
|
||||||
disk_info = plistlib.loads(subprocess.run(["diskutil", "info", "-plist", root_disk], stdout=subprocess.PIPE).stdout)
|
disk_info = plistlib.loads(subprocess.run(["diskutil", "info", "-plist", root_disk], stdout=subprocess.PIPE).stdout)
|
||||||
try:
|
try:
|
||||||
if disk_info["Removable"] is True:
|
if disk_info["Ejectable"] is True:
|
||||||
print("- Boot Disk is removable, prompting user to install to internal")
|
print("- Boot Disk is ejectable, prompting user to install to internal")
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
"osascript",
|
"osascript",
|
||||||
|
|||||||
Reference in New Issue
Block a user