Ejemplo n.º 1
0
    def _tear_down_existing_source(self):
        source_proxy = self.payload.get_source_proxy()

        if source_proxy.Type == constants.SOURCE_TYPE_HDD and source_proxy.Partition:
            unmark_protected_device(source_proxy.Partition)

        tear_down_sources(self.payload.proxy)
Ejemplo n.º 2
0
 def _clean_hdd_iso(self):
     """ Clean HDD ISO usage
     This means unmounting the partition and unprotecting it,
     so it can be used for the installation.
     """
     if self.data.method.method == "harddrive" and self.data.method.partition:
         unmark_protected_device(self.data.method.partition)
Ejemplo n.º 3
0
def _tear_down_existing_source(payload):
    """Tear down existing payload, so we can set a new one.

    :param payload: Anaconda payload instance
    """
    source_proxy = payload.get_source_proxy()

    if source_proxy.Type == SOURCE_TYPE_HDD and source_proxy.Partition:
        unmark_protected_device(source_proxy.Partition)

    tear_down_sources(payload.proxy)