# -*- coding: utf-8 -*-
import rawdisk.plugins.categories as categories
import rawdisk.plugins.filesystems.apple_boot.apple_boot_volume as volume
GPT_GUID = '{426f6f74-0000-11aa-aa11-00306543ecac}'
[docs]class AppleBoot(categories.IFilesystemPlugin):
"""Filesystem plugin for Apple_Boot partition.
"""
@property
def gpt_identifiers(self):
return [GPT_GUID]
[docs] def detect(self, filename, offset, standalone=False):
"""Always returns True, since there is only one partition \
with this type GUID, no need to do further verification.
"""
# do not support standalone detection
if standalone:
return False
return True
[docs] def get_volume_object(self):
"""Returns :class:`~.apple_boot_volume.AppleBootVolume` \
object."""
return volume.AppleBootVolume()