From e070406523af4547d94fd3fea96354622eccb0ad Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Tue, 25 Feb 2025 11:09:12 +0100 Subject: [PATCH] board/mender/x86_64/post-image-efi.sh: fix bootstrap creation As the mender_x86_64_efi_defconfig does not build the xz package, creating a boostrap image with a lzma compression results in the following error on boot: ``` Error while handling bootstrap Artifact, continuing: invalid bootstrap Artifact: readHeaderV3: handleHeaderReads: readHeader: readNext: Failed to get next header: reader: error reading archive: unexpected EOF ``` This also results in the same error for the generated mender image, as it's also created with lzma compression unconditionally. Set the compression to none to resolve the above error. Signed-off-by: Adam Duskett Signed-off-by: Julien Olivain --- board/mender/x86_64/post-image-efi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/mender/x86_64/post-image-efi.sh b/board/mender/x86_64/post-image-efi.sh index 3d4ef1176a..a3e262f8fe 100755 --- a/board/mender/x86_64/post-image-efi.sh +++ b/board/mender/x86_64/post-image-efi.sh @@ -53,7 +53,7 @@ generate_mender_bootstrap_artifact() { "${HOST_DIR}"/bin/mender-artifact \ write bootstrap-artifact \ - --compression lzma \ + --compression none \ --artifact-name "${ARTIFACT_NAME}" \ --device-type "${DEVICE_TYPE}" \ --provides "rootfs-image.version:${ARTIFACT_NAME}" \ @@ -68,7 +68,7 @@ generate_mender_image() { echo "Creating ${BINARIES_DIR}/${DEVICE_TYPE}-${ARTIFACT_NAME}.mender" "${HOST_DIR}/bin/mender-artifact" \ write rootfs-image \ - --compression lzma \ + --compression none \ -t "${DEVICE_TYPE}" \ -n "${BR2_VERSION}" \ -f "${BINARIES_DIR}/rootfs.ext2" \