'Attempts to detect what bootloader is installed on the system
The result of this method is used in all other calls to grubby,
so that it acts accordingly to the bootloader detected.'

def _set_bootloader(self):

    result = self.get_bootloader()
    if (result is not None):
        self.bootloader = result
