On Fri, Feb 5, 2010 at 5:08 PM, Dmitry Monakhov <[email protected]> wrote: > Hi, I haveĀ question about kernel installation infrastructure > > I don't want to compile kernel each time on client side > because of disk space and time issues. So i compile kernel once > on server side and create binary tarball via following command > # mkdir targz-pkg > After this i have linux-xxx.tar.gz (this tar include only binaries) > It was placed in to my http server. I want to install in to a client > > kern = job.kernel('http://server/linux-xxx.tar.gz') > kern.build() > kern.install("autotest") > #But first command fail, but when i place tarball with full source tree > all goes fine. > How can i install already compiled kernel to a client?
You'll have to do a little work to enable this - currently it only does rpm or source tarball, I think. see client/bin/kernel.py note how it has a base kernel class, and then classes for rpm_kernel. you probably want to make another class 'binary_kernel' as a derived class from kernel, and then change the __init__ method, basically simplifying it, and not call build? I suspect all you really need is install(), boot(), and add_to_bootloader() ? AFAIK there's no particular standard for binary kernel tarball layout, so you might have to make something up ;-) _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
