From 9fe89af91d4a9fd82af12545cfe2e92967579599 Mon Sep 17 00:00:00 2001 From: "Frank A. Zdarsky" Date: Wed, 20 Mar 2019 00:27:22 +0100 Subject: [PATCH] Fix extraction of kernel from ISO Extraction of vmlinuz and initramfs.img from ISO failed because newer ISOs store those in /images instead of /. Fixed location. Change-Id: I6ce246fa0a212b38d72e969d6f53ca2d6556e5dc --- cmd/images.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/images.go b/cmd/images.go index 2763d2f..bc74143 100644 --- a/cmd/images.go +++ b/cmd/images.go @@ -75,7 +75,7 @@ func ExtractIsoFiles(isoPath string, buildPath string) { } // copy the images to the build directory - cmd = exec.Command("cp", fmt.Sprintf("%s/vmlinuz", mountPath), buildPath) + cmd = exec.Command("cp", fmt.Sprintf("%s/images/vmlinuz", mountPath), buildPath) cmd.Dir = buildPath out, err = cmd.CombinedOutput() if err != nil { @@ -84,7 +84,7 @@ func ExtractIsoFiles(isoPath string, buildPath string) { os.Exit(1) } - cmd = exec.Command("cp", fmt.Sprintf("%s/initramfs.img", mountPath), buildPath) + cmd = exec.Command("cp", fmt.Sprintf("%s/images/initramfs.img", mountPath), buildPath) cmd.Dir = buildPath out, err = cmd.CombinedOutput() if err != nil { -- 2.16.6