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

Update to 4.9.1 kernel, and start verifying signed kernel

Signed-off-by: Sven <sven@osbuild.local.lan>
This commit is contained in:
Sven Dowideit
2017-01-09 00:26:49 +00:00
parent c3f38b0b54
commit bf457e66cc
7 changed files with 25 additions and 49 deletions

View File

@@ -6,20 +6,19 @@ cd $(dirname $0)/..
source scripts/build-common
source scripts/version
KERNEL=$(basename ${KERNEL_URL})
DIR=${VERSION}
mkdir -p ${BUILD}
cd ${BUILD}
if [ ! -e ${DIR} ]; then
echo Extracting ${ARTIFACTS}/${KERNEL}
echo Extracting ${ARTIFACTS}/${KERNEL_TAR}
TEMP=$(mktemp -d -p ${BUILD})
mkdir ${TEMP}/${DIR}
trap "rm -rf ${TEMP}" exit
ls -lah ${ARTIFACTS}/${KERNEL}
tar xf ${ARTIFACTS}/${KERNEL} -C ${TEMP}/${DIR} --strip-components=1
ls -lah ${ARTIFACTS}/${KERNEL_TAR}
tar xf ${ARTIFACTS}/${KERNEL_TAR} -C ${TEMP}/${DIR} --strip-components=1
mv ${TEMP}/${DIR} ${DIR}
fi