In case KHO is driven from within kernel via live update, finalize will always happen during reboot, so add the KHO image unconditionally. Signed-off-by: Pasha Tatashin --- kernel/liveupdate/kexec_handover.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/liveupdate/kexec_handover.c b/kernel/liveupdate/kexec_handover.c index 9f0913e101be..b54ca665e005 100644 --- a/kernel/liveupdate/kexec_handover.c +++ b/kernel/liveupdate/kexec_handover.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -1489,7 +1490,7 @@ int kho_fill_kimage(struct kimage *image) int err = 0; struct kexec_buf scratch; - if (!kho_out.finalized) + if (!kho_out.finalized && !liveupdate_enabled()) return 0; image->kho.fdt = virt_to_phys(kho_out.fdt); -- 2.51.2.1041.gc1ab5b90ca-goog