]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
wic/efi-bootdisk.wks: Fix for 6.1 kernel versions
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jan 2023 17:07:48 +0000 (17:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jan 2023 21:57:07 +0000 (21:57 +0000)
oe-selftest efibootpartition.GenericEFITest.test_boot_efi was failing for 6.1 kernels with:

| ERROR: _exec_cmd: export PATH=[...] mcopy -i [...]/rootfs_boot.1.vfat -s [...]/rootfs1/* ::/ returned '1' instead of 0
| output: Disk full

I believe we hit a file boundary size and having "0" overhead in the image meant
the files couldn't be installed. Allow a small amount of overhead to avoid
the error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/canned-wks/efi-bootdisk.wks.in

index 7300e65e32d3921cf0623ce109d5282b9dd2fb86..2fd286ff982bc6bb84dae9d052babb3abc84a081 100644 (file)
@@ -1,3 +1,3 @@
 bootloader --ptable gpt
-part /boot --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/boot --fstype=vfat --label boot --active --align 1024 --use-uuid --overhead-factor 1.0
+part /boot --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/boot --fstype=vfat --label boot --active --align 1024 --use-uuid --overhead-factor 1.1
 part / --source rootfs --fstype=ext4 --label root --align 1024 --exclude-path boot/