Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / kernel_untar_build.sh
1 #!/bin/bash
2
3 set -e
4
5 wget -q http://download.ceph.com/qa/linux-4.0.5.tar.xz
6
7 mkdir t
8 cd t
9 tar Jxvf ../linux*.xz
10 cd linux*
11 make defconfig
12 make -j`grep -c processor /proc/cpuinfo`
13 cd ..
14 if ! rm -rv linux* ; then
15     echo "uh oh rm -r failed, it left behind:"
16     find .
17     exit 1
18 fi
19 cd ..
20 rm -rv t linux*