1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-01 12:56:25 +00:00

apply rancher TCMU patches on top of Ubuntu-4.2.0-28.33

This commit is contained in:
Ivan Mikushin
2016-02-03 11:18:46 -08:00
parent fa6478da17
commit aa0d18ae43
5 changed files with 41 additions and 20 deletions

24
scripts/extract Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -e
cd $(dirname $0)/..
source scripts/build-common
KERNEL=$(basename ${KERNEL_URL})
DIR=${KERNEL/.tar.*//}
mkdir -p ${BUILD}
cd ${BUILD}
if [ ! -e ${DIR} ]; then
echo Extracting ${ARTIFACTS}/${KERNEL}
TEMP=$(mktemp -d -p ${BUILD})
mkdir ${TEMP}/${DIR}
trap "rm -rf ${TEMP}" exit
tar xf ${ARTIFACTS}/${KERNEL} -C ${TEMP}/${DIR} --strip-components=1
mv ${TEMP}/${DIR} ${DIR}
fi
cp ${CONFIG}/kernel-config ${DIR}/.config