mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00:00
kernel: Install uncompressed kernel by Image instead of
vmlinux on arm64 arm64 does not use vmlinux to boot, Image is used instead. Otherwise, kata can't boot from vmlinux.container Besides, given that firecracker only supports booting from Image, don't set vmlinux for firecracker target Fixes #930 Signed-off-by: Jia He <justin.he@arm.com>
This commit is contained in:
parent
b99f8f7855
commit
f599c8e009
@ -376,14 +376,15 @@ install_kata() {
|
||||
die "failed to find image"
|
||||
fi
|
||||
|
||||
# Install compressed kernel
|
||||
if [ "${arch_target}" = "powerpc" ]; then
|
||||
install --mode 0644 -D "vmlinux" "${install_path}/${vmlinuz}"
|
||||
else
|
||||
install --mode 0644 -D "${bzImage}" "${install_path}/${vmlinuz}"
|
||||
fi
|
||||
|
||||
if [ "${hypervisor_target}" == "firecracker" ] && [ "${arch_target}" == "arm64" ]; then
|
||||
vmlinux="${vmlinux}-${hypervisor_target}"
|
||||
# Install uncompressed kernel
|
||||
if [ "${arch_target}" = "arm64" ]; then
|
||||
install --mode 0644 -D "arch/${arch_target}/boot/Image" "${install_path}/${vmlinux}"
|
||||
else
|
||||
install --mode 0644 -D "vmlinux" "${install_path}/${vmlinux}"
|
||||
|
@ -1 +1 @@
|
||||
68
|
||||
69
|
||||
|
Loading…
Reference in New Issue
Block a user