1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-08-12 01:41:31 +00:00
os-kernel/images/10-kernel/prebuild.sh

15 lines
527 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
2018-11-30 09:12:34 +00:00
# linux-${KERNEL_VERSION}-${KERNEL_ARCH}.tar
2018-11-30 09:12:34 +00:00
tar -xf /source/dist/kernel/linux-${KERNEL_VERSION}-${KERNEL_ARCH}.tar.gz ./boot/vmlinuz-${KERNEL_VERSION} ./boot/System.map-${KERNEL_VERSION}
mv ./boot/vmlinuz-${KERNEL_VERSION} ./images/10-kernel/kernel
mv ./boot/System.map-${KERNEL_VERSION} ./images/10-kernel/System.map
rmdir boot
2018-11-30 09:12:34 +00:00
cp /source/dist/kernel/linux-${KERNEL_VERSION}-${KERNEL_ARCH}.tar.gz ./images/10-kernel/kernel.tar.gz
gunzip -f ./images/10-kernel/kernel.tar.gz
ls -lah ./images/10-kernel