installer.py: Add CoW support check

HFS+ root volumes do not support CoW
This commit is contained in:
Mykola Grymalyuk
2022-07-07 19:26:02 -06:00
parent 28c4909b7e
commit fb732ff069
2 changed files with 12 additions and 1 deletions

View File

@@ -93,6 +93,10 @@ def check_seal():
else:
return False
def check_filesystem_type():
# Expected to return 'apfs' or 'hfs'
filesystem_type = plistlib.loads(subprocess.run(["diskutil", "info", "-plist", "/"], stdout=subprocess.PIPE).stdout.decode().strip().encode())
return filesystem_type["FilesystemType"]
def csr_dump():
# Based off sip_config.py