fox-it / dissect.target

The Dissect module tying all other Dissect modules together. It provides a programming API and command line tools which allow easy access to various data sources inside disk images or file collections (a.k.a. targets).
GNU Affero General Public License v3.0
44 stars 44 forks source link

Research how ESXi 6 determines partition numbers #633

Open DissectBot opened 6 months ago

DissectBot commented 6 months ago

Additionally, check whether /store is always /locker

 

# TODO: how is this determined in ESXi 6?
# /store == partition number 8
if version and version[0] == "6":
    if fs.volume.number == 8:
        target.fs.symlink(f"/vmfs/volumes/{fs_uuid}", "/store")
        # TODO: Don't know yet if this is always true
        target.fs.symlink("/store", "/locker")