'Get the bootloader name that is detected on this machine
This module performs the same action as client side boottool.py
get_type() method, but with a better name IMHO.
:return: name of detected bootloader'

def get_bootloader(self):

    args = [self.path, '--bootloader-probe']
    output = self._run_get_output_err(args)
    if (output is None):
        return None
    if output.startswith('grubby:    bad    argument'):
        return None
    elif (output not in self.SUPPORTED_BOOTLOADERS):
        return None
    return output
