func parsePhysicalStoreId()

in internal/diskutil/mojave.go [66:74]


func parsePhysicalStoreId(raw string) (string, error) {
	physicalStore := physicalStoreFieldTokenRegexp.FindString(raw)
	diskId := physicalStoreValueDiskIDRegexp.FindString(physicalStore)
	if diskId == "" {
		return "", fmt.Errorf("physical store not found")
	}

	return diskId, nil
}