On Thu, Nov 22, 2012 at 10:01:02AM +0100, Peter Senna Tschudin wrote:
> I've write this scripts because I want to test both the build and the
> boot of -rc stable Kernels. I would like some feedback on the
> directions I'm going.
> 
> My goal is to use cloud infrastructure like Amazon EC2 or Google
> Compute Engine, to build and boot stable -rc Kernels.

EC2 makes it pretty hard to boot your own kernels, right?  Does Google
make it any easier?

> The idea is to have one instance/VM for each Linux flavor, and to use
> this instance/VM for building and testing stable -rc Kernels. I'll
> start with something very simple like doing make modules_install;make
> install after compiling the Kernel, but later I want to follow distro
> specific instructions for building Kernel Packages.

Have you looked at the ktest program in the kernel tree?  It is quite
useful for building and testing kernels, I use it on EC2 to build the
stable kernel trees.

> Testing it this way will compile and boot the Kernel in a lot of
> different configurations and will do basic boot test. The major
> limitation is that it will boot only on virtual machines and not on
> real hardware.

Yeah, that's a big limitation :(

> The big steps are:
> 
> When new -rc stable Kernels is found, foreach Linux Flavor:
> 1 - Start VM
> 2 - Update packages(yum -y update)
> 3 - reboot
> 4 - Stop VM
> 5 - Make snapshot of the VM
> 6 - Start VM
> 7 - Foreach new stable -rc Kernel:
>    A - Make
>    B - Install
>    C - reboot
> 8 - Shutdown
> 9 - Restore snapshot of the VM
> 10 - remove snapshot of the VM

ktest can help out a lot here, look into it.

good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to