1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-08-01 21:07:42 +00:00
os-kernel/images/10-kernel/prebuild.sh
2018-11-30 18:25:15 +08:00

15 lines
527 B
Bash
Executable File

#!/bin/bash
set -ex
# linux-${KERNEL_VERSION}-${KERNEL_ARCH}.tar
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
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