3 wget -nc http://lxc.sourceforge.net/patches/linux/2.6.38/2.6.38.2-lxc1/patches.tar.gz
6 wget -nc ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.2.tar.gz
7 tar xvf linux-2.6.38.2.tar.gz
12 ls ../patches/*.patch | xargs -i sh -cx "patch -p1 < {}"
15 # Start with the default configuration
19 # Add /dev/hda for qemu/kvm
25 # Switch on all container functionality
26 CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
27 CONFIG_CGROUP_DEVICE=y
28 CONFIG_CGROUP_MEM_RES_CTLR=y
31 CONFIG_NET_CLS_CGROUP=y
33 # Virtual network devices
38 yes '' | make oldconfig
40 # Build kernel (counting CPUS to supply appropriate -j to make)
42 CPUS=$(grep "^processor" /proc/cpuinfo | wc -l)