1
0
mirror of https://github.com/rancher/os.git synced 2025-08-30 21:26:09 +00:00

Pick vmlinuz then vmlinux

This commit is contained in:
Darren Shepherd 2016-06-06 21:36:25 -07:00
parent 751b71564e
commit c8fd1bc665

View File

@ -28,10 +28,13 @@ if [ -e ${DOWNLOADS}/kernel.tar.gz ]; then
mkdir -p ${BUILD}/kernel
tar xf ${DOWNLOADS}/kernel.tar.gz -C ${BUILD}/kernel
if [ -e ${BUILD}/kernel/boot/vmlinu* ]; then
mkdir -p dist/artifacts
cp ${BUILD}/kernel/boot/vmlinu* dist/artifacts/vmlinuz
fi
for i in vmlinuz vmlinux; do
if [ -e ${BUILD}/kernel/boot/${i}-* ]; then
mkdir -p dist/artifacts
cp ${BUILD}/kernel/boot/${i}-* dist/artifacts/vmlinuz
break
fi
done
if [ -d ${BUILD}/kernel/lib ]; then
rm -rf ${INITRD_DIR}/usr/lib