Have anyone figured out which criteria to use to determine if the boot drive is AFPS or HFS+
Page 1 / 1
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.