def __virtual__():
    if salt.utils.is_windows():
        return (False, 'The parted execution module failed to load '
                'Windows systems are not supported.')
    if not salt.utils.which('parted'):
        return (False, 'The parted execution module failed to load '
                'parted binary is not in the path.')
    if not salt.utils.which('lsblk'):
        return (False, 'The parted execution module failed to load '
                'lsblk binary is not in the path.')
    if not salt.utils.which('partprobe'):
        return (False, 'The parted execution module failed to load '
                'partprobe binary is not in the path.')
    return __virtualname__


# TODO: all the other inputs to the functions in this module are repetitively
# validated within each function; collect them into validation functions here,
# similar to _validate_device and _validate_partition_boundary
Only work on POSIX-like systems, which have parted and lsblk installed.
dataset/ETHPy150Open saltstack/salt/salt/modules/parted.py/__virtual__