Posted on 05-21-2018 10:05 PM
Have anyone figured out which criteria to use to determine if the boot drive is AFPS or HFS+
Posted on 05-21-2018 11:30 PM
jamf binary currently does not collect this information.
Use an Extension Attribute instead:
To get the filesystem name like "Journaled HFS+" or "APFS" use this:
#!/bin/sh
/usr/sbin/diskutil info -plist / | /usr/bin/xpath '//key[.="FilesystemName"]/following-sibling::*[1]/text()' 2>/dev/null
To get the filesystem type like "hfs" or "apfs" use this:
#!/bin/sh
/usr/sbin/diskutil info -plist / | /usr/bin/xpath '//key[.="FilesystemType"]/following-sibling::*[1]/text()' 2>/dev/null
Posted on 05-22-2018 10:08 AM