[PATCH 2/3] kexec: Introduce UKI image parser
Pingfan Liu
piliu at redhat.com
Sun Oct 13 19:43:34 PDT 2024
Hello everyone,
I have created V2 and make a PR: https://github.com/horms/kexec-tools/pull/9
Due to utilizing the workflow in github to have some basic checks
automatically , I migrated it to github instead of mailing-list.
Please share your opinions.
Thanks
On Fri, Oct 11, 2024 at 7:14 PM Pingfan Liu <piliu at redhat.com> wrote:
>
> On Fri, Oct 11, 2024 at 4:44 PM Simon Horman <horms at kernel.org> wrote:
> >
> > On Tue, Oct 08, 2024 at 07:54:02PM +0800, Pingfan Liu wrote:
> > > A UKI image is a PE file that consists of several sections, typically
> > > including: .text, .data, .linux, .initrd, .cmdline, and others.
> > >
> > > The kernel image is stored in the .linux section, which is one of the
> > > formats currently recognized by kexec-tools. Therefore, the UKI parser
> > > can be used to strip away the UKI layer, allowing the other parser to
> > > process the kernel image.
> > >
> > > Signed-off-by: Pingfan Liu <piliu at redhat.com>
> > > Cc: Simon Horman <horms at kernel.org>
> > > Cc: Eric Biederman <ebiederm at xmission.com>
> > > Cc: Baoquan He <bhe at redhat.com>
> > > Cc: Dave Young <dyoung at redhat.com>
> > > Cc: kexec at lists.infradead.org
> > > ---
> > > include/pe.h | 104 +++++++++++++++++++++++++++++++++++++++
> > > kexec/Makefile | 1 +
> > > kexec/kexec-uki.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++
> > > kexec/kexec.h | 4 ++
> > > 4 files changed, 231 insertions(+)
> > > create mode 100644 include/pe.h
> > > create mode 100644 kexec/kexec-uki.c
> >
> > Hi Pingfan Liu,
> >
> > I think you need to squash the following into this patch
> > so that pe.h is included in distribution tarballs.
> >
> > You should be able to see the problem by running: make distcheck.
> >
>
> Oh, thanks. I will fix it in V2 and remember to do such tests in future.
>
> Best regards,
>
> Pingfan
>
> > diff --git a/include/Makefile b/include/Makefile
> > index cd88a26b1476..6a3e8541c36d 100644
> > --- a/include/Makefile
> > +++ b/include/Makefile
> > @@ -8,6 +8,7 @@ dist += include/Makefile \
> > include/x86/mb_header.h \
> > include/x86/multiboot2.h \
> > include/elf.h \
> > + include/pe.h \
> > include/image.h \
> > include/unused.h \
> > include/boot/linuxbios_tables.h \
> >
More information about the kexec
mailing list