mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
Pick vmlinuz then vmlinux
This commit is contained in:
@@ -28,10 +28,13 @@ if [ -e ${DOWNLOADS}/kernel.tar.gz ]; then
|
|||||||
mkdir -p ${BUILD}/kernel
|
mkdir -p ${BUILD}/kernel
|
||||||
tar xf ${DOWNLOADS}/kernel.tar.gz -C ${BUILD}/kernel
|
tar xf ${DOWNLOADS}/kernel.tar.gz -C ${BUILD}/kernel
|
||||||
|
|
||||||
if [ -e ${BUILD}/kernel/boot/vmlinu* ]; then
|
for i in vmlinuz vmlinux; do
|
||||||
mkdir -p dist/artifacts
|
if [ -e ${BUILD}/kernel/boot/${i}-* ]; then
|
||||||
cp ${BUILD}/kernel/boot/vmlinu* dist/artifacts/vmlinuz
|
mkdir -p dist/artifacts
|
||||||
fi
|
cp ${BUILD}/kernel/boot/${i}-* dist/artifacts/vmlinuz
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [ -d ${BUILD}/kernel/lib ]; then
|
if [ -d ${BUILD}/kernel/lib ]; then
|
||||||
rm -rf ${INITRD_DIR}/usr/lib
|
rm -rf ${INITRD_DIR}/usr/lib
|
||||||
|
Reference in New Issue
Block a user