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. 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. 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. 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 The snapshot thing is to: - Simple way of keeping the VM with distro original Kernel between tests. - Simple way of recovering from non booting kernels. The test plan is to boot the -rc stable Kernel and build other Kernel while it is running. Is this good? There are a lot of details that I'm not describing here but feel free to ask. []'s Peter On Wed, Nov 21, 2012 at 2:08 PM, Peter Senna Tschudin <[email protected]> wrote: > Hi, > > I've made ugly and dirty Bash script to monitor: > > http://www.kernel.org/pub/linux/kernel/v3.x/stable-review > > When it detect changes, for each -rc patch: > 1 - Download the patch > 2 - Apply the downloaded patch to previous stable tag at > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > > Example: 3.6.7-rc is applied to v3.6.6 tag. > > 3 - Make allyesconfig > 4 - Make > > The idea is that the script can be called by cron every few minutes as > it will only download the index of the URL. It will apply patches and > make only if there are changes. > > Working: > https://github.com/petersenna/stable-help/blob/324d6f3c8d005d4842722a0bb73403b8cd7d0a19/bin/check_updates.sh > > Dev: > https://github.com/petersenna/stable-help/blob/master/bin/check_updates.sh > > Please feel free to use and hack it. > > Peter > > -- > Peter -- Peter -- 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
