patch kernel with lxc patches
[sysadmin-cookbook] / recepies / lxc / kvm / 01-setup / 02-build-kvm-kernel.sh
index 60aa9f5..14bf152 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh -xe
 
-#wget -nc http://lxc.sourceforge.net/patches/linux/2.6.38/2.6.38.2-lxc1/patches.tar.gz
-#tar xvf patches.tar.gz
+wget -nc http://lxc.sourceforge.net/patches/linux/2.6.38/2.6.38.2-lxc1/patches.tar.gz
+tar xvf patches.tar.gz
 
 wget -nc ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.2.tar.gz
 tar xvf linux-2.6.38.2.tar.gz
@@ -9,6 +9,9 @@ tar xvf linux-2.6.38.2.tar.gz
 
 cd linux-2.6.38.2
 
+ls ../patches/*.patch | xargs -i sh -cx "patch -p1 < {}"
+
+
 # Start with the default configuration
 make defconfig