build-vm: fixed make-initrd for e2k

This commit is contained in:
Anton Midyukov 2020-03-09 18:26:35 +07:00
parent 0950ba8012
commit 45c6adbf61

View File

@ -26,7 +26,15 @@ for KVER in $kver; do
|| { echo "** Error: make-initrd failed" >&2; exit 1; }
done
# NB: e2k kernel builds "image" instead of "vmlinuz"
[ -f vmlinuz-$KVER ] && ln -s vmlinuz-$KVER vmlinuz ||:
ln -s initrd-$KVER.img initrd.img # missing at this stage
case "$GLOBAL_ARCH" in
e2k)
kname=image;;
*)
kname=vmlinuz;;
esac
rm -f $kname initrd.img
ln -s $kname-$KVER $kname ||:
ln -s initrd-$KVER.img initrd.img
: