aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/linux_linux.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-03-24 15:21:24 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-04-06 17:14:45 +0200
commit975824663d2c65cf7a4d7829fa95f118b675c3be (patch)
treea9702c0d58656fc3501b56afebc458245ce1de6b /pkg/build/linux_linux.go
parent7c75a0aeb6895e59ccd78885a5021ec9fac6bea2 (diff)
pkg/build: support compressed arm64 kernels
Presently Linux doesn't support bzImage/zImage for arm64, but at least we can use Image.gz.
Diffstat (limited to 'pkg/build/linux_linux.go')
-rw-r--r--pkg/build/linux_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/linux_linux.go b/pkg/build/linux_linux.go
index b46356db3..adf830ea9 100644
--- a/pkg/build/linux_linux.go
+++ b/pkg/build/linux_linux.go
@@ -67,7 +67,7 @@ func embedLinuxKernel(params Params, kernelPath string) error {
func copyKernel(mountDir, kernelPath string) error {
// Try several common locations where the kernel can be.
- for _, targetPath := range []string{"boot/vmlinuz", "boot/bzImage", "vmlinuz", "bzImage"} {
+ for _, targetPath := range []string{"boot/vmlinuz", "boot/bzImage", "vmlinuz", "bzImage", "Image.gz"} {
fullPath := filepath.Join(mountDir, filepath.FromSlash(targetPath))
if !osutil.IsExist(fullPath) {
continue