def _get_partitioning(storage, excluded_mount_points=()):
        """Get the partitioning requests for autopart.

        :param storage: blivet.Blivet instance
        :param excluded_mount_points: a list of mount points to exclude
        :return: a list of full partitioning specs
        """
        requests = []

        for request in get_default_partitioning():
            # Skip excluded mount points.
            if (request.mountpoint or request.fstype) in excluded_mount_points:
                continue

            # Set the default filesystem type.
            if request.fstype is None:
                request.fstype = storage.get_fstype(request.mountpoint)

            # Update the size of swap.
            if request.fstype == "swap":
                disk_space = storage.get_disk_free_space()
                request.size = suggest_swap_size(disk_space=disk_space)

            requests.append(request)

        return requests
    def _get_autopart_requests(self, storage):
        """Get the partitioning requests for autopart.

        :param storage: blivet.Blivet instance
        :return: a list of full partitioning specs
        """
        requests = get_full_partitioning_requests(storage, platform, get_default_partitioning())

        # Update the size of swap.
        for request in requests:
            if request.fstype == "swap":
                disk_space = storage.get_disk_free_space()
                request.size = suggest_swap_size(disk_space=disk_space)
                break

        return requests