'Specifies a kernel.  The kernel parameter is a full path, a filename
in the configured kernel directory (set in /etc/cobbler.conf) or a
directory path that would contain a selectable kernel.  Kernel
naming conventions are checked, see docs in the utils module
for find_kernel.'

def set_kernel(self, kernel):

    if ((kernel is None) or (kernel == '')):
        raise CX('kernel    not    specified')
    if utils.find_kernel(kernel):
        self.kernel = kernel
        return
    raise CX(('kernel    not    found:    %s' % kernel))
