'Initialize default cmdline for booted kernels in this job.'

def _init_cmdline(self, extra_copy_cmdline):

    copy_cmdline = set(['console'])
    if (extra_copy_cmdline is not None):
        copy_cmdline.update(extra_copy_cmdline)
    cmdline = utils.read_one_line('/proc/cmdline')
    kernel_args = []
    for karg in cmdline.split():
        for param in copy_cmdline:
            if (karg.startswith(param) and ((len(param) == len(karg)) or (karg[len(param)] == '='))):
                kernel_args.append(karg)
    self.config_set('boot.default_args', '    '.join(kernel_args))
