You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have this code to use kexec to install the latest version of my image on machines that are outdated.
func loadImage(image *boot.LinuxImage, verbose bool) error {
err := image.Load(boot.WithVerbose(verbose))
if err != nil {
log.Printf("Failed to load kernel: %v. Retrying with LoadSyscall=true.", err)
image.LoadSyscall = true
err = image.Load(boot.WithVerbose(verbose))
}
if err != nil {
return fmt.Errorf("Kexec load of %v failed: %v", image.Label(), err)
}
return nil
}
The reason I have the Load bit twice is that some of the machines have a kernel that's compiled without the CONFIG_KEXEC_FILE flag.
I'm hitting this error on some machines:
Failed to load image: Kexec load of Installer failed: parsing bzImage Linux kernel: error decompressing payload: error starting decompressor: exec: "unxz": executable file not found in $PATH
Is there a way to bundle the needed libraries into u-root itself instead of relying on the machine having this binary?
Describe the solution you'd like
The needed libraries would be bundled into u-root so that it doesn't have to shell out to the system.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have this code to use kexec to install the latest version of my image on machines that are outdated.
The reason I have the Load bit twice is that some of the machines have a kernel that's compiled without the
CONFIG_KEXEC_FILE
flag.I'm hitting this error on some machines:
Is there a way to bundle the needed libraries into u-root itself instead of relying on the machine having this binary?
Describe the solution you'd like
The needed libraries would be bundled into u-root so that it doesn't have to shell out to the system.
The text was updated successfully, but these errors were encountered: