vboot2: add library function for extracting vmlinuz from kernel part
postinst needs access to a kernel that is bootable from legacy BIOS.
futility provides extraction of a bootable vmlinuz from the kernel
partition via the command line. This patch provides a function which
does the same thing and is suitable for static linking into postinst
with minimal additonal code linked in. This way we can avoid issues with
running dynamic executables during postinst.
Reviewed-by: Bill Richardson <firstname.lastname@example.org>
Commit-Queue: Zach Reizner <email@example.com>
Tested-by: Zach Reizner <firstname.lastname@example.org>
3 files changed