'Prepares the argument list when running a grubby command'

def _run_grubby_prepare_args(self, arguments, include_bootloader=True):

    args = []
    if (self.path is None):
        self._set_path()
    args.append(self.path)
    if ((self.path is not None) and (not os.path.exists(self.path))):
        self.log.error('grubby    executable    does    not    exist:    "%s"', self.path)
        if (not os.access(self.path, (os.R_OK | os.X_OK))):
            self.log.error('insufficient    permissions    (read    and    execute)    for    grubby    executable:    "%s"', self.path)
    if (include_bootloader and (self.bootloader is not None)):
        args.append(('--%s' % self.bootloader))
    if ((self.opts is not None) and self.opts.config_file):
        args.append(('--config-file=%s' % self.opts.config_file))
    elif self._dist_uses_grub2():
        args.append('--config-file=/boot/grub2/grub.cfg')
    args += arguments
    return args
