OpenVZ Forum


Home » Mailing lists » Users » bash script to build kernels for Debian
Re: bash script to build kernels for Debian [message #46214 is a reply to message #46165] Thu, 03 May 2012 05:11 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

On 04/30/2012 12:55 AM, CoolCold wrote:
> Hello!
>
> I've created script for myself to build Debian packaged kernels from
> source in semi-automated way. Works for me, may be useful for others.
>
> For building current stable version one just need to start script - it
> will download kernel, patch, config and do compiliation.
>
> Code is located on github and is accessible via
> https://github.com/CoolCold/tools/blob/master/openvz/kernel/ create-ovz-kernel-for-debian.sh.
>

Looking good, thanks. Are you satisfied with the kernel you have this
way? I mean, are you using it in production, how many nodes etc.

A few minor suggestions for the script itself:

1. "#checking packages" better be moved before read -t 10, no need to
wait then see that we can't build

2. s/$(fgrep processor /proc/cpuinfo|wc -l)/$(grep -cw ^processor
/proc/cpuinfo)/

3. print_usage could be improved to not hardcode current defaults but
take it from KERNELINFO


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Previous Topic: Install from USB: isolinux.bin is missing
Next Topic: Submission Deadline Extension
Goto Forum:
  


Current Time: Fri Jul 25 12:52:16 GMT 2025

Total time taken to generate the page: 0.20540 seconds