]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: bootimg-efi: Make kernel image installation configurable
authorKareem Zarka <zarkakareem@gmail.com>
Fri, 1 Dec 2023 14:03:31 +0000 (15:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Dec 2023 11:23:33 +0000 (11:23 +0000)
commitd3599afe5f604ea5afd9411e114934dcb52b2d48
treeae47854d4fe51840dcf27fa01f7cf0171b534427
parent5aeada5793af53e8c93940952d4f314474dca4c2
wic: bootimg-efi: Make kernel image installation configurable

The issue with installing the kernel image to both rootfs
and boot partition is that some systems rely on the kernel image in
rootfs and not in the boot partition.
This leads to duplication of the kernel image, which can cause
unnecessary storage usage.
This patch provides a solution to the problem by adding a new
parameter "install-kernel-into-boot-dir" to the wic kickstart file.
If this parameter is set to 'true', the plugin will install the
kernel image to the boot partition. If the parameter is set to
'false', the plugin will skip installing the kernel image, avoiding
duplication.

Signed-off-by: Kareem Zarka <kareem.zarka@huawei.com>
Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/source/bootimg-efi.py