#!/usr/bin/python3

# requirements: disk /dev/sdc


from storage import *
from storageitu import *


set_logger(get_logfile_logger())

environment = Environment(False)

storage = Storage(environment)
storage.probe()

staging = storage.get_staging()

print(staging)

partitionable = Partitionable.find_by_name(staging, "/dev/sdc")

partitionable.remove_descendants()

partitionable.create_partition_table(PtType_GPT)

print(staging)

commit(storage)

