ceph/qa/workunits/kernel_untar_build.sh
Sage Weil 968d29d138 qa: use recent kernel for kernel_untar_build.sh
Happier on oneiric!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-12 12:01:41 -07:00

22 lines
364 B
Bash
Executable File

#!/bin/bash
set -e
#wget -q http://ceph.newdream.net/qa/linux-2.6.33.tar.bz2
wget -q http://ceph.newdream.net/qa/linux-3.2.9.tar.bz2
mkdir t
cd t
tar jxvf ../linux*.bz2
cd linux*
make defconfig
make -j`grep -c processor /proc/cpuinfo`
cd ..
if ! rm -rv linux* ; then
echo "uh oh rm -r failed, it left behind:"
find .
exit 1
fi
cd ..
rm -rv t linux*