ceph/qa/workunits/kernel_untar_build.sh
Patrick Donnelly f0fe0936e6
qa: use recent kernel to kernel build testing
Fixes: http://tracker.ceph.com/issues/24679

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-16 09:16:39 -07:00

21 lines
326 B
Bash
Executable File

#!/usr/bin/env bash
set -e
wget -O linux.tar.gz http://download.ceph.com/qa/linux-4.17.tar.gz
mkdir t
cd t
tar xzf ../linux.tar.gz
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*