diff mbox series

[2/2] board/mender/x86_64/post-image-efi.sh: fix bootstrap creation

Message ID 20250225100912.1623970-2-adam.duskett@amarulasolutions.com
State Accepted
Delegated to: Julien Olivain
Headers show
Series [1/2] board/mender/x86_64/post-build.sh: fix device_type location | expand

Commit Message

Adam Duskett Feb. 25, 2025, 10:09 a.m. UTC
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 <adam.duskett@amarulasolutions.com>
---
 board/mender/x86_64/post-image-efi.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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" \