'add this kernel to bootloader, taking an
optional parameter of space separated parameters
e.g.:  kernel.add_to_bootloader(\'mykernel\', \'ro acpi=off\')'

def add_to_bootloader(self, tag='autotest', args=''):

    self.job.bootloader.enable_xen_mode()
    self.job.bootloader.remove_kernel(tag)
    self.job.bootloader.add_kernel(self.kjob.image, tag, initrd=self.kjob.initrd, xen_hypervisor=self.xen_image)
    if (not args):
        args = open('/proc/cmdline', 'r').readline().strip()
    for a in args.split('    '):
        self.job.bootloader.add_args(tag, a)
    self.job.bootloader.disable_xen_mode()
