예제 #1
0
    def GatherRequests(self) -> List[Structure]:
        """Gather all mount point requests.

        Return mount point requests for all usable devices. If there is
        a defined request for the given device, we will use it. Otherwise,
        we will generate a new request.

        :return: a list of requests
        """
        return MountPointRequest.to_structure_list(self.implementation.gather_requests())
예제 #2
0
파일: storage.py 프로젝트: m4d3bug/anaconda
    def apply(self):
        """ Apply our selections. """
        mount_points = []

        for _device, request in self._mount_info:
            if request.reformat or request.mount_point:
                if not request.mount_point:
                    request.mount_point = "none"

                mount_points.append(request)

        self._manual_part_proxy.SetRequests(MountPointRequest.to_structure_list(mount_points))
예제 #3
0
    def apply(self):
        """ Apply our selections. """
        mount_points = []

        for request in self._requests:
            if request.reformat or request.mount_point:
                if not request.mount_point:
                    request.mount_point = "none"

                mount_points.append(request)

        self._partitioning.SetRequests(
            MountPointRequest.to_structure_list(mount_points))
예제 #4
0
 def Requests(self) -> List[Structure]:
     """List of mount point requests."""
     return MountPointRequest.to_structure_list(self.implementation.requests)